From 6cb7c1c2db0e5c3491faf337d0a6e09352257c1b Mon Sep 17 00:00:00 2001 From: Miquel Raynal Date: Thu, 20 Jun 2024 17:51:17 +0200 Subject: [PATCH] labs: kernel: debugging: mention decode_stacktrace.sh Signed-off-by: Miquel Raynal --- labs/kernel-debugging/kernel-debugging.tex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/labs/kernel-debugging/kernel-debugging.tex b/labs/kernel-debugging/kernel-debugging.tex index 1be8768839..dee9763a4a 100644 --- a/labs/kernel-debugging/kernel-debugging.tex +++ b/labs/kernel-debugging/kernel-debugging.tex @@ -148,7 +148,9 @@ \subsection{Locating the exact line where the error happens} A little understanding of assembly instructions on the architecture you are working on helps, but seeing the original C code should answer -most questions. +most questions. Anyway, it is also possible to get an automated +translation of the symbol offsets using +\code{scripts/decode_stacktrace.sh} (in the kernel sources). Note that the same technique works if the error comes directly from the code of a module. Just dissassemble the \code{.o} file