[Lldb-commits] [lldb] [lldb] Added a warning in case of instruction decode failure (PR #164413)

Timur Golubovich via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 22 08:20:24 PDT 2025


================
@@ -157,7 +157,9 @@ static lldb::offset_t DumpInstructions(const DataExtractor &DE, Stream *s,
         exe_scope->CalculateExecutionContext(exe_ctx);
         disassembler_sp->GetInstructionList().Dump(
             s, show_address, show_bytes, show_control_flow_kind, &exe_ctx);
-      }
+      } else if (number_of_instructions)
+        s->Printf("warning: failed to decode instructions at 0x%" PRIx64 ".",
+                  addr);
----------------
tgs-sc wrote:

@JDevlieghere, Hi! What do you think about the current state?

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


More information about the lldb-commits mailing list