[Lldb-commits] [lldb] r122840 - in /lldb/trunk/source/Plugins/Process/Linux: LinuxThread.cpp LinuxThread.h
Stephen Wilson
wilsons at start.ca
Tue Jan 4 13:45:02 PST 2011
Author: wilsons
Date: Tue Jan 4 15:45:02 2011
New Revision: 122840
URL: http://llvm.org/viewvc/llvm-project?rev=122840&view=rev
Log:
Remove LinuxThread::GetRawStopReason and implement Thread::GetPrivateStopReason.
Modified:
lldb/trunk/source/Plugins/Process/Linux/LinuxThread.cpp
lldb/trunk/source/Plugins/Process/Linux/LinuxThread.h
Modified: lldb/trunk/source/Plugins/Process/Linux/LinuxThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Linux/LinuxThread.cpp?rev=122840&r1=122839&r2=122840&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Linux/LinuxThread.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Linux/LinuxThread.cpp Tue Jan 4 15:45:02 2011
@@ -85,26 +85,27 @@
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
Modified: lldb/trunk/source/Plugins/Process/Linux/LinuxThread.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Linux/LinuxThread.h?rev=122840&r1=122839&r2=122840&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Linux/LinuxThread.h (original)
+++ lldb/trunk/source/Plugins/Process/Linux/LinuxThread.h Tue Jan 4 15:45:02 2011
@@ -50,9 +50,6 @@
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 @@
Notification m_note;
ProcessMonitor &GetMonitor();
+
+ lldb::StopInfoSP
+ GetPrivateStopReason();
};
#endif // #ifndef liblldb_LinuxThread_H_
More information about the lldb-commits
mailing list