[Lldb-commits] [lldb] [lldb][lldb-dap] Use the default disassembly flavour if none is provided. (PR #141424)

Ebuka Ezike via lldb-commits lldb-commits at lists.llvm.org
Mon May 26 03:01:45 PDT 2025


================
@@ -2039,7 +2039,17 @@ lldb::SBInstructionList SBTarget::ReadInstructions(lldb::SBAddress base_addr,
       const size_t bytes_read =
           target_sp->ReadMemory(*addr_ptr, data.GetBytes(), data.GetByteSize(),
                                 error, force_live_memory, &load_addr);
+
       const bool data_from_file = load_addr == LLDB_INVALID_ADDRESS;
+      if (!flavor_string || flavor_string[0] == '\0') {
----------------
da-viper wrote:

The other function that creates a `DisassemblerSP` `Disassembler::DisassembleRange` uses an address range. I would not be able to use that since some architecture the instructions do not map one to one to an address. 

https://github.com/llvm/llvm-project/pull/141424


More information about the lldb-commits mailing list