Skip to content

Commit

Permalink
common: gdb: add the display command
Browse files Browse the repository at this point in the history
Show how to automatically print a variable each time the program stops in
gdb

Fixes #229

Signed-off-by: Alexis Lothoré <[email protected]>
  • Loading branch information
Tropicao committed Apr 2, 2024
1 parent c5fb576 commit 6857e4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/gdb.tex
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@
Break only if the specified condition is true
\item \code{watch <variable> if condition == value}\\
Trigger the watchpoint only if the specified condition is true
\item \code{display <expr>}\\
Automatically prints expression each time program stops
\item \code{x/<n><u> <address>}\\
Display memory at the provided address. \code{n} is the amount of memory to
display, \code{u} is the type of data to be displayed (\code{b/h/w/g}).
Expand Down

0 comments on commit 6857e4f

Please sign in to comment.