Added GetSymbol to the frame.

llvm-svn: 115535
This commit is contained in:
Greg Clayton 2010-10-04 18:37:52 +00:00
parent dc72caa6de
commit 3b06557e4f
2 changed files with 10 additions and 0 deletions

View File

@ -57,6 +57,9 @@ public:
lldb::SBFunction
GetFunction () const;
lldb::SBSymbol
GetSymbol () const;
// Gets the deepest block that contains the frame PC
lldb::SBBlock
GetBlock () const;

View File

@ -99,6 +99,13 @@ SBFrame::GetFunction () const
return sb_function;
}
SBSymbol
SBFrame::GetSymbol () const
{
SBSymbol sb_symbol(m_opaque_sp->GetSymbolContext (eSymbolContextSymbol).symbol);
return sb_symbol;
}
SBBlock
SBFrame::GetBlock () const
{