[Driver] Fix a segfault in signal handlers
authorPavel Labath <labath@google.com>
Mon, 11 Apr 2016 16:40:09 +0000 (16:40 +0000)
committerPavel Labath <labath@google.com>
Mon, 11 Apr 2016 16:40:09 +0000 (16:40 +0000)
commitbb5c39d79e4b0a187c180bc25d41921eb7d51dac
treef5b67d1bdddf38d4817fb2f9064df6a877a04be5
parentc98de13871b3376ba7c25dd33ca49a9712e6542b
[Driver] Fix a segfault in signal handlers

Summary:
If we recieve a SIGCONT or SIGTSTP, while the driver is shutting down (which, sometimes, we do,
for reasons which are not completely clear to me), we would crash to due a null pointer
dereference. Guard against this situation.

Reviewers: clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D18965

llvm-svn: 265958
lldb/tools/driver/Driver.cpp