summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-03-30 19:56:32 +0000
committerGreg Clayton <gclayton@apple.com>2012-03-30 19:56:32 +0000
commitab950c34d09a7e9dafffdf2ccc40ea83dc4e4ba0 (patch)
tree3a03f9b6240c272cc9cd7d146f8a17fe285310f6 /lldb/source/Plugins/Process
parent8453795255ca34a804e01f5b3c7cb939f41ad20c (diff)
downloadbcm5719-llvm-ab950c34d09a7e9dafffdf2ccc40ea83dc4e4ba0.tar.gz
bcm5719-llvm-ab950c34d09a7e9dafffdf2ccc40ea83dc4e4ba0.zip
Patch from Viktor Kutuzov: fixes a segmentation fault crash in lldb in the ProcessPOSIX class when the object gets destroyed. I can reproduce this problem on the FreeBSD platform and it should be reproducable for the other platforms also.
llvm-svn: 153769
Diffstat (limited to 'lldb/source/Plugins/Process')
-rw-r--r--lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
index 68ffc2f70c8..332dc415cf2 100644
--- a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
+++ b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
@@ -292,7 +292,7 @@ ProcessPOSIX::DoDestroy()
// limbo).
m_exit_now = true;
- if (kill(m_monitor->GetPID(), SIGKILL) && error.Success())
+ if ((m_monitor == NULL || kill(m_monitor->GetPID(), SIGKILL)) && error.Success())
{
error.SetErrorToErrno();
return error;
OpenPOWER on IntegriCloud