[lldb-dev] [PATCH] Added SBProcess::GetInterruptedFromEvent
Greg Clayton
gclayton at apple.com
Mon Nov 3 09:46:13 PST 2014
Looks good.
> On Nov 3, 2014, at 6:24 AM, Mario Zechner <badlogicgames at gmail.com> wrote:
>
> 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
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
More information about the lldb-dev
mailing list