diff options
| author | Enrico Granata <egranata@apple.com> | 2013-02-28 02:18:49 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2013-02-28 02:18:49 +0000 |
| commit | 0a2df227fc99133641d53de0769028dd8e29497a (patch) | |
| tree | aafa4b372a64f0557c8eefda791e58f22c79de1b | |
| parent | a22cd706a2eca7ff13aaaa54450d466a5bd1cd06 (diff) | |
| download | llvm-0a2df227fc99133641d53de0769028dd8e29497a.zip llvm-0a2df227fc99133641d53de0769028dd8e29497a.tar.gz llvm-0a2df227fc99133641d53de0769028dd8e29497a.tar.bz2 | |
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
llvm-svn: 176231
| -rw-r--r-- | lldb/source/API/SBThread.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/API/SBThread.cpp b/lldb/source/API/SBThread.cpp index 3f3c904..e347e3d 100644 --- a/lldb/source/API/SBThread.cpp +++ b/lldb/source/API/SBThread.cpp @@ -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; |
