================
@@ -552,28 +552,35 @@ void Disassembler::PrintInstructions(Debugger &debugger, 
const ArchSpec &arch,
 
 bool Disassembler::Disassemble(Debugger &debugger, const ArchSpec &arch,
                                StackFrame &frame, Stream &strm) {
-  AddressRange range;
   SymbolContext sc(
       frame.GetSymbolContext(eSymbolContextFunction | eSymbolContextSymbol));
   if (sc.function) {
-    range = sc.function->GetAddressRange();
-  } else if (sc.symbol && sc.symbol->ValueIsAddress()) {
+    if (DisassemblerSP disasm_sp = DisassembleRange(
+            arch, nullptr, nullptr, nullptr, nullptr, *frame.CalculateTarget(),
----------------
DavidSpickett wrote:

Could add some `/*parameter=*/` while you're here.

https://github.com/llvm/llvm-project/pull/130987
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to