Skip to content

Commit

Permalink
slides: common: fix gdb command example
Browse files Browse the repository at this point in the history
GDB slides currently mention conditional breakpoints/watchpoints with
"condition == variable", which should either be just "condition" or
"somevar == variable". Use the first one.

Signed-off-by: Alexis Lothoré <[email protected]>
  • Loading branch information
Tropicao committed Dec 10, 2024
1 parent c10094b commit 462f4a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/gdb.tex
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@
Add a watchpoint on a specific variable/address.
\item \code{print variable = value} (\code{p variable = value})\\
Modify the content of the specified variable with a new value
\item \code{break foobar.c:42 if condition == value}\\
\item \code{break foobar.c:42 if condition}\\
Break only if the specified condition is true
\item \code{watch <variable> if condition == value}\\
\item \code{watch <variable> if condition}\\
Trigger the watchpoint only if the specified condition is true
\item \code{display <expr>}\\
Automatically prints expression each time program stops
Expand Down

0 comments on commit 462f4a8

Please sign in to comment.