[Lldb-commits] [lldb] r112217 - in /lldb/trunk: include/lldb/Target/StackFrame.h source/Target/StackFrame.cpp
Jim Ingham
jingham at apple.com
Thu Aug 26 13:44:46 PDT 2010
Author: jingham
Date: Thu Aug 26 15:44:45 2010
New Revision: 112217
URL: http://llvm.org/viewvc/llvm-project?rev=112217&view=rev
Log:
Add StackFrame::IsInlined.
Modified:
lldb/trunk/include/lldb/Target/StackFrame.h
lldb/trunk/source/Target/StackFrame.cpp
Modified: lldb/trunk/include/lldb/Target/StackFrame.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Target/StackFrame.h?rev=112217&r1=112216&r2=112217&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Target/StackFrame.h (original)
+++ lldb/trunk/include/lldb/Target/StackFrame.h Thu Aug 26 15:44:45 2010
@@ -84,6 +84,9 @@
void
Dump (Stream *strm, bool show_frame_index);
+
+ bool
+ IsInlined ();
uint32_t
GetFrameIndex () const
Modified: lldb/trunk/source/Target/StackFrame.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/StackFrame.cpp?rev=112217&r1=112216&r2=112217&view=diff
==============================================================================
--- lldb/trunk/source/Target/StackFrame.cpp (original)
+++ lldb/trunk/source/Target/StackFrame.cpp Thu Aug 26 15:44:45 2010
@@ -470,6 +470,16 @@
return m_value_object_list;
}
+bool
+StackFrame::IsInlined ()
+{
+ Block *block = GetSymbolContext (eSymbolContextBlock).block;
+ if (block)
+ return block->GetContainingInlinedBlock() != NULL;
+ else
+ return false;
+}
+
Target *
StackFrame::CalculateTarget ()
{
More information about the lldb-commits
mailing list