aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/API/SBThread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBThread.cpp')
-rw-r--r--lldb/source/API/SBThread.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/lldb/source/API/SBThread.cpp b/lldb/source/API/SBThread.cpp
index e52496a699ff..c5285fdbd41c 100644
--- a/lldb/source/API/SBThread.cpp
+++ b/lldb/source/API/SBThread.cpp
@@ -19,6 +19,7 @@
#include "lldb/Target/Process.h"
#include "lldb/Symbol/SymbolContext.h"
#include "lldb/Symbol/CompileUnit.h"
+#include "lldb/Target/StopInfo.h"
#include "lldb/Target/Target.h"
#include "lldb/Target/ThreadPlan.h"
#include "lldb/Target/ThreadPlanStepInstruction.h"
@@ -79,9 +80,9 @@ SBThread::GetStopReason()
{
if (m_opaque_sp)
{
- lldb_private::Thread::StopInfo thread_stop_info;
- if (m_opaque_sp->GetStopInfo(&thread_stop_info))
- return thread_stop_info.GetStopReason();
+ lldb_private::StopInfo *stop_info = m_opaque_sp->GetStopInfo ();
+ if (stop_info)
+ return stop_info->GetStopReason();
}
return eStopReasonInvalid;
}
@@ -91,10 +92,10 @@ SBThread::GetStopDescription (char *dst, size_t dst_len)
{
if (m_opaque_sp)
{
- lldb_private::Thread::StopInfo thread_stop_info;
- if (m_opaque_sp->GetStopInfo(&thread_stop_info))
+ lldb_private::StopInfo *stop_info = m_opaque_sp->GetStopInfo ();
+ if (stop_info)
{
- const char *stop_desc = thread_stop_info.GetStopDescription();
+ const char *stop_desc = stop_info->GetDescription();
if (stop_desc)
{
if (dst)
@@ -108,7 +109,7 @@ SBThread::GetStopDescription (char *dst, size_t dst_len)
else
{
size_t stop_desc_len = 0;
- switch (thread_stop_info.GetStopReason())
+ switch (stop_info->GetStopReason())
{
case eStopReasonTrace:
case eStopReasonPlanComplete:
@@ -137,7 +138,7 @@ SBThread::GetStopDescription (char *dst, size_t dst_len)
case eStopReasonSignal:
{
- stop_desc = m_opaque_sp->GetProcess().GetUnixSignals ().GetSignalAsCString (thread_stop_info.GetSignal());
+ stop_desc = m_opaque_sp->GetProcess().GetUnixSignals ().GetSignalAsCString (stop_info->GetValue());
if (stop_desc == NULL || stop_desc[0] == '\0')
{
static char signal_desc[] = "signal";