[Lldb-commits] [lldb] [lldb][riscv] Fix setting breakpoint for undecoded instruction (PR #90075)

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Mon May 20 17:21:35 PDT 2024


================
@@ -115,8 +148,23 @@ Status NativeProcessSoftwareSingleStep::SetupSoftwareSingleStepping(
   emulator_up->SetWriteMemCallback(&WriteMemoryCallback);
   emulator_up->SetWriteRegCallback(&WriteRegisterCallback);
 
-  if (!emulator_up->ReadInstruction())
-    return Status("Read instruction failed!");
+  if (!emulator_up->ReadInstruction()) {
----------------
jasonmolenda wrote:

Shouldn't this block now be `if (emulator_up->ReadInstruction())` now?  We're going to get the size of the last decoded instruction here.

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


More information about the lldb-commits mailing list