summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Process.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2015-11-05 23:03:44 +0000
committerJason Molenda <jmolenda@apple.com>2015-11-05 23:03:44 +0000
commita814f704d33a7137cff0345ed81aaa59408d2d19 (patch)
tree292c8e923050063bd001cceddcb4796a40db15f7 /lldb/source/Target/Process.cpp
parent12ec50553f2444bc04ce9978cdb33eae9585a122 (diff)
downloadbcm5719-llvm-a814f704d33a7137cff0345ed81aaa59408d2d19.tar.gz
bcm5719-llvm-a814f704d33a7137cff0345ed81aaa59408d2d19.zip
Add support for the new (added last week) llvm::Triple::WatchOS and ::TvOS
in places where we check for Triple::IOS. They're mostly the same as far as lldb is conerned. . Also add a base cass implementation for Process::IsAlive - Greg added this last year but it didn't get upstreamed. llvm-svn: 252227
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r--lldb/source/Target/Process.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index a51a734bca3..9b7054ebfa7 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -1501,6 +1501,29 @@ Process::SetExitStatus (int status, const char *cstr)
return true;
}
+bool
+Process::IsAlive ()
+{
+ switch (m_private_state.GetValue())
+ {
+ case eStateInvalid:
+ case eStateUnloaded:
+ case eStateDetached:
+ case eStateExited:
+ return false;
+
+ case eStateConnected:
+ case eStateAttaching:
+ case eStateLaunching:
+ case eStateStopped:
+ case eStateRunning:
+ case eStateStepping:
+ case eStateCrashed:
+ case eStateSuspended:
+ return true;
+ }
+}
+
// This static callback can be used to watch for local child processes on
// the current host. The child process exits, the process will be
// found in the global target list (we want to be completely sure that the
OpenPOWER on IntegriCloud