diff options
Diffstat (limited to 'lldb/source/API/SBSymbol.cpp')
-rw-r--r-- | lldb/source/API/SBSymbol.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lldb/source/API/SBSymbol.cpp b/lldb/source/API/SBSymbol.cpp index 3fd06f84eb1..580ef93c4be 100644 --- a/lldb/source/API/SBSymbol.cpp +++ b/lldb/source/API/SBSymbol.cpp @@ -113,11 +113,15 @@ SBSymbol::GetDescription (SBStream &description) return true; } - - SBInstructionList SBSymbol::GetInstructions (SBTarget target) { + return GetInstructions (target, NULL); +} + +SBInstructionList +SBSymbol::GetInstructions (SBTarget target, const char *flavor_string) +{ SBInstructionList sb_instructions; if (m_opaque_ptr) { @@ -137,6 +141,7 @@ SBSymbol::GetInstructions (SBTarget target) AddressRange symbol_range (m_opaque_ptr->GetAddress(), m_opaque_ptr->GetByteSize()); sb_instructions.SetDisassembler (Disassembler::DisassembleRange (module_sp->GetArchitecture (), NULL, + flavor_string, exe_ctx, symbol_range)); } |