[Lldb-commits] [lldb] [lldb] Fix false watchpoint stop on single-step when hw debug regset read fails (PR #226880)

via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 28 21:09:52 PDT 2026


LiRvs-Miria wrote:

@DavidSpickett Thanks for the review! Updated as suggested:
- `NativeRegisterContextDBReg::GetWatchpointHitIndex()` now assigns `LLDB_INVALID_INDEX32` before any early return, matching the contract of the base class default and the x86/s390x implementations. This also fixes the entry `LLDB_LOG` reading the uninitialized value.
- `NativeProcessLinux::MonitorSIGTRAP` now checks `error.Success()` before testing both the `wp_index` and `bp_index` out-params.
PTAL!

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


More information about the lldb-commits mailing list