[Lldb-commits] [lldb] [lldb-dap] fix disassembly request instruction offset handling (PR #140486)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon May 19 21:19:13 PDT 2025
================
@@ -1668,6 +1668,26 @@ SBError SBTarget::SetLabel(const char *label) {
return Status::FromError(target_sp->SetLabel(label));
}
+uint32_t SBTarget::GetMinimumOpcodeByteSize() const {
+ LLDB_INSTRUMENT_VA(this);
+
+ TargetSP target_sp(GetSP());
+ if (target_sp) {
+ return target_sp->GetArchitecture().GetMinimumOpcodeByteSize();
+ }
----------------
JDevlieghere wrote:
```suggestion
if (target_sp)
return target_sp->GetArchitecture().GetMinimumOpcodeByteSize();
```
https://github.com/llvm/llvm-project/pull/140486
More information about the lldb-commits
mailing list