Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs/scripts/gdb: add necessary make scripts_gdb step

In order to debug the kernel successfully with gdb you need to run
'make scripts_gdb' nowadays.

This was changed with the following commit:

Commit 67274c083438340ad16c ("scripts/gdb: delay generation of gdb
constants.py")

In order to have a complete guide for beginners this remark
should be added to the offial documentation.

Signed-off-by: Jakob Koschel <jkl820.git@gmail.com>
Link: https://lore.kernel.org/r/20230112-documentation-gdb-v2-1-292785c43dc9@gmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Jakob Koschel and committed by
Jonathan Corbet
6b219431 835205f6

+4
+4
Documentation/dev-tools/gdb-kernel-debugging.rst
··· 39 39 this mode. In this case, you should build the kernel with 40 40 CONFIG_RANDOMIZE_BASE disabled if the architecture supports KASLR. 41 41 42 + - Build the gdb scripts (required on kernels v5.1 and above):: 43 + 44 + make scripts_gdb 45 + 42 46 - Enable the gdb stub of QEMU/KVM, either 43 47 44 48 - at VM startup time by appending "-s" to the QEMU command line