[bootlin/training-materials updates] master: common: gdb: move 'p $newvar' bullet below (d2579c4e)

Luca Ceresoli luca.ceresoli at bootlin.com
Wed Nov 15 18:51:36 CET 2023


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/d2579c4ea3b809356ae42232bebfc51287ff57f3

>---------------------------------------------------------------

commit d2579c4ea3b809356ae42232bebfc51287ff57f3
Author: Luca Ceresoli <luca.ceresoli at bootlin.com>
Date:   Wed Nov 15 18:41:21 2023 +0100

    common: gdb: move 'p $newvar' bullet below
    
    It's related to the 'define' command, so keep it close.
    
    Signed-off-by: Luca Ceresoli <luca.ceresoli at bootlin.com>


>---------------------------------------------------------------

d2579c4ea3b809356ae42232bebfc51287ff57f3
 common/gdb.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/gdb.tex b/common/gdb.tex
index 4ecc386e..cf7c27af 100644
--- a/common/gdb.tex
+++ b/common/gdb.tex
@@ -129,11 +129,11 @@
       Display the source code associated to the current program counter location.
     \item \code{disassemble <location,start_offset,end_offset>} (\code{disas})\\
       Display the assembly code that is currently executed.
-    \item \code{p $newvar = value}\\
-      Declare a new gdb variable that can be used locally or in command sequence
     \item \code{p function(arguments)}\\
       Execute a function using GDB. NOTE: be careful of any side effects that
       may happen when executing the function
+    \item \code{p $newvar = value}\\
+      Declare a new gdb variable that can be used locally or in command sequence
     \item \code{define <command_name>}\\
       Define a new command sequence. GDB will prompt for the sequence of
       commands.




More information about the training-materials-updates mailing list