diff options
author | Greg Clayton <gclayton@apple.com> | 2011-09-26 07:11:27 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-09-26 07:11:27 +0000 |
commit | 8f7180b11e024406e50ed53e27c95af461e6ec4d (patch) | |
tree | 58923ba4e035f927163db21665e0d69d20699317 /lldb/scripts/Python/interface/SBSymbolContext.i | |
parent | 1748b37acd1826d9f02f75fbace1be49a596eae1 (diff) | |
download | bcm5719-llvm-8f7180b11e024406e50ed53e27c95af461e6ec4d.tar.gz bcm5719-llvm-8f7180b11e024406e50ed53e27c95af461e6ec4d.zip |
Added more functionality to the public API to allow for better
symbolication. Also improved the SBInstruction API to allow
access to the instruction opcode name, mnemonics, comment and
instruction data.
Added the ability to edit SBLineEntry objects (change the file,
line and column), and also allow SBSymbolContext objects to be
modified (set module, comp unit, function, block, line entry
or symbol).
The SymbolContext and SBSymbolContext can now generate inlined
call stack infomration for symbolication much easier using the
SymbolContext::GetParentInlinedFrameInfo(...) and
SBSymbolContext::GetParentInlinedFrameInfo(...) methods.
llvm-svn: 140518
Diffstat (limited to 'lldb/scripts/Python/interface/SBSymbolContext.i')
-rw-r--r-- | lldb/scripts/Python/interface/SBSymbolContext.i | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/lldb/scripts/Python/interface/SBSymbolContext.i b/lldb/scripts/Python/interface/SBSymbolContext.i index c8ef8eb60ab..00d80da9892 100644 --- a/lldb/scripts/Python/interface/SBSymbolContext.i +++ b/lldb/scripts/Python/interface/SBSymbolContext.i @@ -58,12 +58,25 @@ public: bool IsValid () const; - SBModule GetModule (); - SBCompileUnit GetCompileUnit (); - SBFunction GetFunction (); - SBBlock GetBlock (); - SBLineEntry GetLineEntry (); - SBSymbol GetSymbol (); + lldb::SBModule GetModule (); + lldb::SBCompileUnit GetCompileUnit (); + lldb::SBFunction GetFunction (); + lldb::SBBlock GetBlock (); + lldb::SBLineEntry GetLineEntry (); + lldb::SBSymbol GetSymbol (); + + void SetModule (lldb::SBModule module); + void SetCompileUnit (lldb::SBCompileUnit compile_unit); + void SetFunction (lldb::SBFunction function); + void SetBlock (lldb::SBBlock block); + void SetLineEntry (lldb::SBLineEntry line_entry); + void SetSymbol (lldb::SBSymbol symbol); + + lldb::SBSymbolContext + GetParentInlinedFrameInfo (const lldb::SBAddress &curr_frame_pc, + bool is_concrete_frame, + lldb::SBAddress &parent_frame_addr) const; + bool GetDescription (lldb::SBStream &description); |