[Lldb-commits] [lldb] [lldb] Interpret breakpoint-id "." as the location(s) of the current stop (PR #194272)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 27 01:32:17 PDT 2026


================
@@ -80,6 +94,28 @@ llvm::Error BreakpointIDList::FindAndReplaceIDRanges(
     bool is_range = false;
 
     current_arg = old_args[i].ref();
+
+    if (current_arg == ".") {
+      Thread *thread = exe_ctx.GetThreadPtr();
+      if (!thread) {
+        new_args.Clear();
+        return llvm::createStringError("no current thread");
+      }
+      StopInfoSP stop_info_sp = thread->GetStopInfo();
+      if (!stop_info_sp ||
+          stop_info_sp->GetStopReason() != eStopReasonBreakpoint) {
+        new_args.Clear();
+        return llvm::createStringError(
+            "current thread is not stopped at a breakpoint.");
----------------
DavidSpickett wrote:

No full stop - https://llvm.org/docs/CodingStandards.html#error-and-warning-messages

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


More information about the lldb-commits mailing list