[Lldb-commits] [lldb] r176231 - the log entry for SBThread::GetProcess() would not include the pointer to the process because we were using the value of the (otherwise unused) process_sp - instead of fetching the SP from sb_process
Enrico Granata
egranata at apple.com
Wed Feb 27 18:18:49 PST 2013
Author: enrico
Date: Wed Feb 27 20:18:49 2013
New Revision: 176231
URL: http://llvm.org/viewvc/llvm-project?rev=176231&view=rev
Log:
the log entry for SBThread::GetProcess() would not include the pointer to the process because we were using the value of the (otherwise unused) process_sp - instead of fetching the SP from sb_process
Modified:
lldb/trunk/source/API/SBThread.cpp
Modified: lldb/trunk/source/API/SBThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBThread.cpp?rev=176231&r1=176230&r2=176231&view=diff
==============================================================================
--- lldb/trunk/source/API/SBThread.cpp (original)
+++ lldb/trunk/source/API/SBThread.cpp Wed Feb 27 20:18:49 2013
@@ -994,9 +994,7 @@ SBThread::IsSuspended()
SBProcess
SBThread::GetProcess ()
{
-
SBProcess sb_process;
- ProcessSP process_sp;
ExecutionContext exe_ctx (m_opaque_sp.get());
if (exe_ctx.HasThreadScope())
{
@@ -1010,7 +1008,7 @@ SBThread::GetProcess ()
SBStream frame_desc_strm;
sb_process.GetDescription (frame_desc_strm);
log->Printf ("SBThread(%p)::GetProcess () => SBProcess(%p): %s", exe_ctx.GetThreadPtr(),
- process_sp.get(), frame_desc_strm.GetData());
+ sb_process.GetSP().get(), frame_desc_strm.GetData());
}
return sb_process;
More information about the lldb-commits
mailing list