[Lldb-commits] [lldb] r138563 - /lldb/trunk/source/Target/StackFrameList.cpp
Johnny Chen
johnny.chen at apple.com
Thu Aug 25 10:27:02 PDT 2011
Author: johnny
Date: Thu Aug 25 12:27:02 2011
New Revision: 138563
URL: http://llvm.org/viewvc/llvm-project?rev=138563&view=rev
Log:
Fix compilation error with DEBUG_STACK_FRAMES defined, patch by Filipe Cabecinhas!
With some slight modification.
Modified:
lldb/trunk/source/Target/StackFrameList.cpp
Modified: lldb/trunk/source/Target/StackFrameList.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/StackFrameList.cpp?rev=138563&r1=138562&r2=138563&view=diff
==============================================================================
--- lldb/trunk/source/Target/StackFrameList.cpp (original)
+++ lldb/trunk/source/Target/StackFrameList.cpp Thu Aug 25 12:27:02 2011
@@ -63,7 +63,7 @@
if (m_show_inlined_frames)
{
#if defined (DEBUG_STACK_FRAMES)
- StreamFile s(stdout);
+ StreamFile s(stdout, false);
#endif
Unwind *unwinder = m_thread.GetUnwinder ();
addr_t pc = LLDB_INVALID_ADDRESS;
@@ -456,7 +456,7 @@
Mutex::Locker prev_locker (prev_sp.get() ? prev_sp->m_mutex.GetMutex() : NULL);
#if defined (DEBUG_STACK_FRAMES)
- StreamFile s(stdout);
+ StreamFile s(stdout, false);
s.PutCString("\n\nStackFrameList::Merge():\nPrev:\n");
if (prev_sp.get())
prev_sp->Dump (&s);
@@ -514,9 +514,8 @@
StackID curr_stack_id (curr_frame_zero_sp->GetStackID());
StackID prev_stack_id (prev_frame_zero_sp->GetStackID());
- //const uint32_t num_prev_frames = prev_sp->GetNumFrames (false);
-
#if defined (DEBUG_STACK_FRAMES)
+ const uint32_t num_prev_frames = prev_sp->GetNumFrames (false);
s.Printf("\n%u previous frames with one current frame\n", num_prev_frames);
#endif
More information about the lldb-commits
mailing list