From 0f7cb341966c8124c28951b84a3f3749857b0d8f Mon Sep 17 00:00:00 2001 From: Nasser Afshin Date: Sat, 23 Dec 2023 00:49:27 +0330 Subject: [PATCH] debugging: slides: debug info is generated by gcc not gdb Fix: debug info is generated by the compiler not the debugger itself. Signed-off-by: Nasser Afshin Reviewed-by: Michael Opdenacker --- .../debugging-application-debugging.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slides/debugging-application-debugging/debugging-application-debugging.tex b/slides/debugging-application-debugging/debugging-application-debugging.tex index 2317b2875e..48b39b4ee9 100644 --- a/slides/debugging-application-debugging/debugging-application-debugging.tex +++ b/slides/debugging-application-debugging/debugging-application-debugging.tex @@ -32,7 +32,7 @@ \subsection{Building with debug information} \item Debugging information uses the DWARF format \item Allows the debugger to match addresses and symbol names, call sites, etc - \item Debugging information is generated by GDB and included in the + \item Debugging information is generated by the compiler and included in the ELF file when compiled with \code{-g} \begin{itemize} \item \code{-g1}: minimal debug information (enough for backtraces)