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

Ely Ronnen via lldb-commits lldb-commits at lists.llvm.org
Sun May 25 13:45:30 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') {
----------------
eronnen wrote:

This check already exists in `Disassembler::FindPluginForTarget`, maybe more straightforward would be to call a function in the `Disassembler` class that uses it instead of `Disassembler::DisassembleBytes`?

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


More information about the lldb-commits mailing list