[Lldb-commits] [lldb] [lldb] Add SB API to make a breakpoint a hardware breakpoint (PR #146602)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 3 03:20:04 PDT 2025


labath wrote:

> For some reason we have SBProcess::GetNumSupportedHardwareWatchpoints but not SBProcess::GetNumSupportedHardwareBreakpoints.

Just noting that the values returned from these (partially imaginary) APIs would be hard to use correctly. The two resources might be inter-dependent. E.g. intel can have four hardware breakpoints OR four hardware watchpoints. However, it cannot have four HW breakpoints AND four HW watchpoints. And it might not be able to set even all four as the (linux) kernel might be using some of the registers for its own purposes (something to do with perf, I believe).

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


More information about the lldb-commits mailing list