From 1080edbcdd7d24ad5213749e396e23b54c1a3040 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 25 Mar 2011 18:03:16 +0000 Subject: Cleaned up the Disassembler code a bit more. You can now request a disassembler plugin by name on the command line for when there is more than one disassembler plugin. Taught the Opcode class to dump itself so that "disassembler -b" will dump the bytes correctly for each opcode type. Modified all places that were passing the opcode bytes buffer in so that the bytes could be displayed to just pass in a bool that indicates if we should dump the opcode bytes since the opcode now lives inside llvm_private::Instruction. llvm-svn: 128290 --- lldb/source/API/SBSymbol.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lldb/source/API/SBSymbol.cpp') diff --git a/lldb/source/API/SBSymbol.cpp b/lldb/source/API/SBSymbol.cpp index 96a5a21ebde..ef8af558c5d 100644 --- a/lldb/source/API/SBSymbol.cpp +++ b/lldb/source/API/SBSymbol.cpp @@ -134,6 +134,7 @@ SBSymbol::GetInstructions (SBTarget target) if (module) { sb_instructions.SetDisassembler (Disassembler::DisassembleRange (module->GetArchitecture (), + NULL, exe_ctx, *symbol_range)); } -- cgit v1.2.3