[bootlin/training-materials updates] master: slides: gdb: add command to execute a function (52e5b730)

Clément Léger clement.leger at bootlin.com
Thu Feb 2 15:51:54 CET 2023


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

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

commit 52e5b730ceed58dc9b21fd28f94a7bbe12a20ea3
Author: Clément Léger <clement.leger at bootlin.com>
Date:   Thu Feb 2 15:51:54 2023 +0100

    slides: gdb: add command to execute a function
    
    Signed-off-by: Clément Léger <clement.leger at bootlin.com>


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

52e5b730ceed58dc9b21fd28f94a7bbe12a20ea3
 common/gdb.tex | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/gdb.tex b/common/gdb.tex
index 3e99741e..bfac76b7 100644
--- a/common/gdb.tex
+++ b/common/gdb.tex
@@ -131,6 +131,9 @@
       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{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