How do I enable/disable one breakpoint from another breakpoint?

21 views
Skip to first unread message

mron

unread,
Mar 4, 2021, 4:17:36 PM3/4/21
to CodeLLDB Users
I'm new to debugging with gdb/lldb. How do I enable a breakpoint after another breakpoint is hit?

Also, what are the different syntaxes for? /se /py /nat?

And how do I use the hit_count syntax? Where do I use:
operator :: = '<' | '<=' | '=' | '>=' | '>' | '%' 
hit_condition ::= operator number

Vadim Chugunov

unread,
Mar 4, 2021, 5:06:44 PM3/4/21
to mron, CodeLLDB Users
On Thu, Mar 4, 2021 at 1:17 PM mron <ronmo...@earthlink.net> wrote:
I'm new to debugging with gdb/lldb. How do I enable a breakpoint after another breakpoint is hit?

The only way I can think of, is a pretty obscure feature in LLDB called, "named breakpoints".   There isn't much documentation online, but there is some built-in help in LLDB: try "help breakpoint name".  You could name a group of breakpoints, and then enable/disable them by attaching a command to the controlling breakpoint.   All of that will need to be done via LLDB commands, I am afraid - VSCode UI has no provisions for advanced features like this.
 
Also, what are the different syntaxes for? /se /py /nat?
Please read the "Expressions" section in the manual.   I think it's all explained there.
 
And how do I use the hit_count syntax? Where do I use:
operator :: = '<' | '<=' | '=' | '>=' | '>' | '%' 
hit_condition ::= operator number

image.png

Reply all
Reply to author
Forward
0 new messages