[Lldb-commits] [lldb] r115535 - in /lldb/trunk: include/lldb/API/SBFrame.h source/API/SBFrame.cpp
Greg Clayton
gclayton at apple.com
Mon Oct 4 11:37:53 PDT 2010
Author: gclayton
Date: Mon Oct 4 13:37:52 2010
New Revision: 115535
URL: http://llvm.org/viewvc/llvm-project?rev=115535&view=rev
Log:
Added GetSymbol to the frame.
Modified:
lldb/trunk/include/lldb/API/SBFrame.h
lldb/trunk/source/API/SBFrame.cpp
Modified: lldb/trunk/include/lldb/API/SBFrame.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBFrame.h?rev=115535&r1=115534&r2=115535&view=diff
==============================================================================
--- lldb/trunk/include/lldb/API/SBFrame.h (original)
+++ lldb/trunk/include/lldb/API/SBFrame.h Mon Oct 4 13:37:52 2010
@@ -57,6 +57,9 @@
lldb::SBFunction
GetFunction () const;
+ lldb::SBSymbol
+ GetSymbol () const;
+
// Gets the deepest block that contains the frame PC
lldb::SBBlock
GetBlock () const;
Modified: lldb/trunk/source/API/SBFrame.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBFrame.cpp?rev=115535&r1=115534&r2=115535&view=diff
==============================================================================
--- lldb/trunk/source/API/SBFrame.cpp (original)
+++ lldb/trunk/source/API/SBFrame.cpp Mon Oct 4 13:37:52 2010
@@ -99,6 +99,13 @@
return sb_function;
}
+SBSymbol
+SBFrame::GetSymbol () const
+{
+ SBSymbol sb_symbol(m_opaque_sp->GetSymbolContext (eSymbolContextSymbol).symbol);
+ return sb_symbol;
+}
+
SBBlock
SBFrame::GetBlock () const
{
More information about the lldb-commits
mailing list