Fix compilation error with DEBUG_STACK_FRAMES defined, patch by Filipe Cabecinhas!
With some slight modification.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@138563 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/StackFrameList.cpp b/source/Target/StackFrameList.cpp
index 21f8a50..660bdcc 100644
--- a/source/Target/StackFrameList.cpp
+++ b/source/Target/StackFrameList.cpp
@@ -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