summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
diff options
context:
space:
mode:
authorDaniel Malea <daniel.malea@intel.com>2013-04-01 19:48:37 +0000
committerDaniel Malea <daniel.malea@intel.com>2013-04-01 19:48:37 +0000
commit335bf6fb763424351d35213ff64967b0f8f20aa6 (patch)
treed3a8b2996ef12fe23cd3c6a1037db5ef2199c9f5 /lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
parente60fc2f67675a6d6254e076ab530d71113a51c54 (diff)
downloadbcm5719-llvm-335bf6fb763424351d35213ff64967b0f8f20aa6.tar.gz
bcm5719-llvm-335bf6fb763424351d35213ff64967b0f8f20aa6.zip
Fix bug in ProcessPOSIX::IsAlive() exposed by r178324
- process in 'unloaded' state was (incorrectly) considered to be alive by POSIX plugin - above caused a regression in TestProcessLaunch cases llvm-svn: 178493
Diffstat (limited to 'lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp')
-rw-r--r--lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
index ff3f6a37508..137fa46eddc 100644
--- a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
+++ b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
@@ -425,7 +425,10 @@ bool
ProcessPOSIX::IsAlive()
{
StateType state = GetPrivateState();
- return state != eStateDetached && state != eStateExited && state != eStateInvalid;
+ return state != eStateDetached
+ && state != eStateExited
+ && state != eStateInvalid
+ && state != eStateUnloaded;
}
size_t
OpenPOWER on IntegriCloud