From 6857e4f197e4f7a0799a82478dcaf5382498e14f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20Lothor=C3=A9?= Date: Tue, 2 Apr 2024 10:26:21 +0200 Subject: [PATCH] common: gdb: add the display command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show how to automatically print a variable each time the program stops in gdb Fixes #229 Signed-off-by: Alexis Lothoré --- common/gdb.tex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/gdb.tex b/common/gdb.tex index 24c6b27ebc..343318aa75 100644 --- a/common/gdb.tex +++ b/common/gdb.tex @@ -114,6 +114,8 @@ Break only if the specified condition is true \item \code{watch if condition == value}\\ Trigger the watchpoint only if the specified condition is true + \item \code{display }\\ + Automatically prints expression each time program stops \item \code{x/
}\\ 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}).