[Lldb-commits] [lldb] [lldb] Define breakpoint location "." to mean the location(s) at which the current thread is stopped (PR #194272)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 28 13:59:05 PDT 2026
================
@@ -55,6 +59,14 @@ bool BreakpointIDList::Contains(BreakpointID bp_id) const {
return llvm::is_contained(m_breakpoint_ids, bp_id);
}
+static std::string LocationIDForStop(StopInfoSP stop_info_sp, uint32_t idx) {
+ break_id_t bp_id = stop_info_sp->GetStopReasonDataAtIndex(idx);
----------------
jimingham wrote:
Should you check that this actually IS a StopReasonBreakpoint (`stop_info_sp->GetStopReason() == eStopReasonBreakpoint`)? It's unlikely someone will misuse this, but it can't hurt to check.
https://github.com/llvm/llvm-project/pull/194272
More information about the lldb-commits
mailing list