[bootlin/training-materials updates] master: debugging: slides: add vgdb introduction slide (fa623420)

Alexis Lothoré alexis.lothore at bootlin.com
Fri Jul 7 11:58:55 CEST 2023


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

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

commit fa623420e85586148b11404ec278530169d3bceb
Author: Alexis Lothoré <alexis.lothore at bootlin.com>
Date:   Fri Jul 7 11:46:19 2023 +0200

    debugging: slides: add vgdb introduction slide
    
    Proprely introduce valgrind gdb server mode and vgdb usage before
    describing how to use it
    
    Fixes #163
    
    Signed-off-by: Alexis Lothoré <alexis.lothore at bootlin.com>


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

fa623420e85586148b11404ec278530169d3bceb
 .../debugging-memory-issues/debugging-memory-issues.tex | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/slides/debugging-memory-issues/debugging-memory-issues.tex b/slides/debugging-memory-issues/debugging-memory-issues.tex
index f1213203..7ce44606 100644
--- a/slides/debugging-memory-issues/debugging-memory-issues.tex
+++ b/slides/debugging-memory-issues/debugging-memory-issues.tex
@@ -175,6 +175,23 @@ $ valgrind --leak-check=full ./mem_leak
 \end{frame}
 
 
+\begin{frame}[fragile]
+  \frametitle{Valgrind and VGDB}
+  \begin{itemize}
+    \item Valgrind can also act as a GDB server which can receive and process
+    commands. One can interact with valgrind gdb server either with a gdb
+    client, or directly with \code{vgdb} program (provided with valgrind).
+    \code{vgdb} can be used in different ways:
+    \begin{itemize}
+      \item As a standalone CLI program to send "monitor" commands to valgrind
+      \item As a relay between a gdb client and an existing valgrind session
+      \item As a server to drive multiple valgrind sessions from a remote gdb
+      client
+    \end{itemize}
+    \item See \manpage{vgdb}{1} for available modes, commands and options
+    \end{itemize}
+\end{frame}
+
 \begin{frame}[fragile]
   \frametitle{Using GDB with Memcheck}
   \begin{itemize}




More information about the training-materials-updates mailing list