From eff1424348716447965b158f602604c37d720910 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Thu, 21 Sep 2023 17:39:26 +0200 Subject: gdb: fix conditional bp and add note to remove condition --- src/tools/gdb.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tools/gdb.md') 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 Make existing breakpoint conditional with . + cond + Remove condition from breakpoint . + 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 -- cgit v1.2.3