Skip to content

Commit

Permalink
debugging: labs: clarify sentence
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Ceresoli <[email protected]>
  • Loading branch information
lucaceresoli committed Nov 17, 2023
1 parent 665c852 commit f4c672d
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,11 @@ \subsection{Locating the exact line where the error happens}
this happens. We will disassemble the code for this function to understand
exactly where the issue happened.
That is where we need a kernel compiled with \kconfig{CONFIG_DEBUG_INFO}
as we did in the initial lab. This way, the kernel vmlinux file is
compiled with \code{-g} compiler flag, which adds a lot of debugging
information (matching between source code lines and assembly for instance).
That is where we need a kernel compiled with \kconfig{CONFIG_DEBUG_INFO},
which is already enabled in the kernel we compiled in the initial lab.
This way, the kernel vmlinux file is compiled with \code{-g} compiler flag,
which adds a lot of debugging information (matching between source code
lines and assembly for instance).
Using \code{addr2line}, find the exact source code line were the crash happened.
For that, you can use the following command on your development host:
Expand Down

0 comments on commit f4c672d

Please sign in to comment.