[bootlin/training-materials updates] master: debugging: labs: use the linux buuild path which will allow loading vmlinux.gdb.py (f4ffdad4)
Clément Léger
clement.leger at bootlin.com
Wed Nov 23 10:02:05 CET 2022
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/f4ffdad4502bde1f8e6e7afb45c4bbdcbbdb82a1
>---------------------------------------------------------------
commit f4ffdad4502bde1f8e6e7afb45c4bbdcbbdb82a1
Author: Clément Léger <clement.leger at bootlin.com>
Date: Wed Nov 23 09:37:26 2022 +0100
debugging: labs: use the linux buuild path which will allow loading vmlinux.gdb.py
Signed-off-by: Clément Léger <clement.leger at bootlin.com>
>---------------------------------------------------------------
f4ffdad4502bde1f8e6e7afb45c4bbdcbbdb82a1
labs/debugging-kernel-debugging/debugging-kernel-debugging.tex | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex b/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
index e5ff1399..7985503a 100644
--- a/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
+++ b/labs/debugging-kernel-debugging/debugging-kernel-debugging.tex
@@ -17,7 +17,8 @@ to reproduce the crash, run the following command:
$ watchdog -T 10 -t 5 /dev/watchdog0
\end{bashinput}
-Immediatly after executing this commands, you'll see that the kernel crashing.
+Immediatly after executing this commands, you'll see that the kernel reported
+an OOPS !
\subsection{Analyzing the crash message}
@@ -93,10 +94,13 @@ automatically wait for a debugger to be attached. Run \code{gdb-multiarch} and
attach a gdb process to KGDB with the following command:
\begin{bashinput}
-$ gdb-multiarch /home/<user>/debugging-labs/nfsroot/root/vmlinux
+$ gdb-multiarch /home/<user>/debugging-labs/buildroot/output/build/linux-5.13/vmlinux
(gdb) target remote /dev/pts/8
\end{bashinput}
+{\em TIP: in order to allow auto-loading of python scripts, you can add
+\code{set auto-load safe-path /} in your .gdbinit file}
+
First of all, confirm the previous information that were obtain post crash using
GDB. This will allow you to also display variables values. Starting from that
point, we will add a breakpoint on the \code{watchdog_set_drvdata()} function.
More information about the training-materials-updates
mailing list