[Lldb-commits] [PATCH 7/9] Remove LinuxThread::GetRawStopReason and implement Thread::GetPrivateStopReason.
Stephen Wilson
wilsons at start.ca
Tue Jan 4 12:54:15 PST 2011
---
source/Plugins/Process/Linux/LinuxThread.cpp | 15 ++++++++-------
source/Plugins/Process/Linux/LinuxThread.h | 6 +++---
2 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/source/Plugins/Process/Linux/LinuxThread.cpp b/source/Plugins/Process/Linux/LinuxThread.cpp
index 4994d64..b5d3b64 100644
--- a/source/Plugins/Process/Linux/LinuxThread.cpp
+++ b/source/Plugins/Process/Linux/LinuxThread.cpp
@@ -85,26 +85,27 @@ LinuxThread::CreateRegisterContextForFrame(lldb_private::StackFrame *frame)
return new RegisterContextLinux_x86_64(*this, frame);
}
-bool
-LinuxThread::GetRawStopReason(StopInfo *stop_info)
+lldb::StopInfoSP
+LinuxThread::GetPrivateStopReason()
{
- stop_info->Clear();
+ lldb::StopInfoSP stop_info;
switch (m_note)
{
default:
- stop_info->SetStopReasonToNone();
break;
case eBreak:
- stop_info->SetStopReasonWithBreakpointSiteID(m_breakpoint->GetID());
+ stop_info = StopInfo::CreateStopReasonWithBreakpointSiteID(
+ *this, m_breakpoint->GetID());
break;
case eTrace:
- stop_info->SetStopReasonToTrace();
+ stop_info = StopInfo::CreateStopReasonToTrace(*this);
+ break;
}
- return true;
+ return stop_info;
}
bool
diff --git a/source/Plugins/Process/Linux/LinuxThread.h b/source/Plugins/Process/Linux/LinuxThread.h
index 8ef3125..afa1548 100644
--- a/source/Plugins/Process/Linux/LinuxThread.h
+++ b/source/Plugins/Process/Linux/LinuxThread.h
@@ -50,9 +50,6 @@ public:
RegisterContextLinux *
CreateRegisterContextForFrame(lldb_private::StackFrame *frame);
- bool
- GetRawStopReason(lldb_private::StopInfo *stop_info);
-
//--------------------------------------------------------------------------
// These methods form a specialized interface to linux threads.
//
@@ -78,6 +75,9 @@ private:
Notification m_note;
ProcessMonitor &GetMonitor();
+
+ lldb::StopInfoSP
+ GetPrivateStopReason();
};
#endif // #ifndef liblldb_LinuxThread_H_
--
1.7.3.2
More information about the lldb-commits
mailing list