[lldb-dev] [PATCH] Added SBProcess::GetInterruptedFromEvent
Mario Zechner
badlogicgames at gmail.com
Mon Nov 3 06:24:14 PST 2014
This patch allows API clients to check if a stop event was due to a call to
Process:Halt(). I based the patch on the latest master branch of the Github
mirror of the LLDB SVN trunk. Checking out the SVN trunk fails for me.
---
include/lldb/API/SBProcess.h | 3 +++
source/API/SBProcess.cpp | 6 ++++++
2 files changed, 9 insertions(+)
diff --git a/include/lldb/API/SBProcess.h b/include/lldb/API/SBProcess.h
index 3d6e49c..6fcc5c2 100644
--- a/include/lldb/API/SBProcess.h
+++ b/include/lldb/API/SBProcess.h
@@ -248,6 +248,9 @@ public:
// Events
static lldb::StateType
GetStateFromEvent (const lldb::SBEvent &event);
+
+ static bool
+ GetInterruptedFromEvent(const lldb::SBEvent &event);
static bool
GetRestartedFromEvent (const lldb::SBEvent &event);
diff --git a/source/API/SBProcess.cpp b/source/API/SBProcess.cpp
index 9a0b23b..66eca5f 100644
--- a/source/API/SBProcess.cpp
+++ b/source/API/SBProcess.cpp
@@ -974,6 +974,12 @@ SBProcess::GetStateFromEvent (const SBEvent &event)
}
bool
+SBProcess::GetInterruptedFromEvent(const lldb::SBEvent &event)
+{
+ return Process::ProcessEventData::GetInterruptedFromEvent(event.get());
+}
+
+bool
SBProcess::GetRestartedFromEvent (const SBEvent &event)
{
return Process::ProcessEventData::GetRestartedFromEvent (event.get());
--
1.9.3 (Apple Git-50)
Thanks,
Mario
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20141103/58c72f37/attachment.html>
More information about the lldb-dev
mailing list