[Lldb-commits] [lldb] r307618 - Pass in the disassembler flavor when disassembling in

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 10 21:22:31 PDT 2017


Author: jmolenda
Date: Mon Jul 10 21:22:31 2017
New Revision: 307618

URL: http://llvm.org/viewvc/llvm-project?rev=307618&view=rev
Log:
Pass in the disassembler flavor when disassembling in
DumpDataExtractor.  Patch from Jeffrey Crowell,

https://reviews.llvm.org/D34929

Modified:
    lldb/trunk/source/Core/DumpDataExtractor.cpp

Modified: lldb/trunk/source/Core/DumpDataExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/DumpDataExtractor.cpp?rev=307618&r1=307617&r2=307618&view=diff
==============================================================================
--- lldb/trunk/source/Core/DumpDataExtractor.cpp (original)
+++ lldb/trunk/source/Core/DumpDataExtractor.cpp Mon Jul 10 21:22:31 2017
@@ -154,7 +154,8 @@ lldb::offset_t lldb_private::DumpDataExt
       target_sp = exe_scope->CalculateTarget();
     if (target_sp) {
       DisassemblerSP disassembler_sp(Disassembler::FindPlugin(
-          target_sp->GetArchitecture(), nullptr, nullptr));
+          target_sp->GetArchitecture(),
+          target_sp->GetDisassemblyFlavor(), nullptr));
       if (disassembler_sp) {
         lldb::addr_t addr = base_addr + start_offset;
         lldb_private::Address so_addr;




More information about the lldb-commits mailing list