diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-09-21 17:39:26 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-09-21 17:39:26 +0200 |
commit | eff1424348716447965b158f602604c37d720910 (patch) | |
tree | 1089d88fd988631905a4f7803183364ad762759e | |
parent | 30bc89f36a0310eb5c9c710f0544577b3688fd77 (diff) | |
download | notes-eff1424348716447965b158f602604c37d720910.tar.gz notes-eff1424348716447965b158f602604c37d720910.zip |
gdb: fix conditional bp and add note to remove condition
-rw-r--r-- | src/tools/gdb.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/gdb.md b/src/tools/gdb.md index c8c04df..83f9c1b 100644 --- a/src/tools/gdb.md +++ b/src/tools/gdb.md @@ -59,6 +59,9 @@ cond <bp> <cond> Make existing breakpoint <bp> conditional with <cond>. + cond <bp> + Remove condition from breakpoint <bp>. + tbreak Set temporary breakpoint, will be deleted when hit. Same syntax as `break`. @@ -290,7 +293,7 @@ Create conditional breakpoints for a function `void foo(int i)` in the debugee. b foo # would create bp 2 # Make existing breakpoint conditional - cond 2 if i == 7 + cond 2 i == 7 ``` ## Set breakpoint on all threads except one |