[all-commits] [llvm/llvm-project] 749af7: [lldb] Define breakpoint location "." to mean the ...
Dave Lee via All-commits
all-commits at lists.llvm.org
Tue Apr 28 14:43:11 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 749af7f06d466fa49b274159ff0fcfd52789af54
https://github.com/llvm/llvm-project/commit/749af7f06d466fa49b274159ff0fcfd52789af54
Author: Dave Lee <davelee.com at gmail.com>
Date: 2026-04-28 (Tue, 28 Apr 2026)
Changed paths:
M lldb/include/lldb/Breakpoint/BreakpointIDList.h
M lldb/source/Breakpoint/BreakpointIDList.cpp
M lldb/source/Commands/CommandObjectBreakpoint.cpp
M lldb/source/Commands/CommandObjectBreakpoint.h
M lldb/source/Commands/CommandObjectBreakpointCommand.cpp
M lldb/source/Commands/CommandObjectProcess.cpp
M lldb/source/Commands/CommandOptionArgumentTable.cpp
A lldb/test/API/commands/breakpoint/location-dot/Makefile
A lldb/test/API/commands/breakpoint/location-dot/TestBreakpointLocationDot.py
A lldb/test/API/commands/breakpoint/location-dot/main.c
M llvm/docs/ReleaseNotes.md
Log Message:
-----------
[lldb] Define breakpoint location "." to mean the location(s) at which the current thread is stopped (#194272)
Adds `.` as a new `breakpt-id` syntax. Users can specify `.` to mean the breakpoint
location(s) that caused the current thread to stop.
I selected `.` to mean the current breakpoint locations for two reasons. In a shells,
period means <ins>current</ins> directory. In prose, a period is a <ins>stop</ins>.
My workflow often starts with multiple breakpoint locations, such as with regex
breakpoints, or basename breakpoints for overloaded/overridden names. As locations are
hit, I realize which locations are no longer needed. This new syntax makes it quick and
easy to disable the currently stopped location(s).
Another use case for this is to quickly repeat commands for the current location:
``` break com add -o 'p someVar' . ```
Usage example:
``` (lldb) b main.c:2 Process 47071 stopped * thread #1, queue =
'com.apple.main-thread', stop reason = breakpoint 1.1
frame #0: ... main`main at main.c:2:3
1 int main() {
-> 2 return 0;
3 }
Target 0: (main) stopped. (lldb) breakpoint disable . 1 breakpoints disabled. (lldb)
breakpoint list Current breakpoints: 1: file = 'main.c', line = 2, exact_match = 0,
locations = 1
1.1: where = main`main + 12 at main.c:2:3, address = ..., hit count = 1 Options:
disabled
```
rdar://73047170
Assisted-by: claude
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list