hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/Documentation/dev-tools/gdb-kernel-debugging.rst
....@@ -24,7 +24,7 @@
2424
2525 - Create a virtual Linux machine for QEMU/KVM (see www.linux-kvm.org and
2626 www.qemu.org for more details). For cross-development,
27
- http://landley.net/aboriginal/bin keeps a pool of machine images and
27
+ https://landley.net/aboriginal/bin keeps a pool of machine images and
2828 toolchains that can be helpful to start from.
2929
3030 - Build the kernel with CONFIG_GDB_SCRIPTS enabled, but leave
....@@ -39,6 +39,10 @@
3939 this mode. In this case, you should build the kernel with
4040 CONFIG_RANDOMIZE_BASE disabled if the architecture supports KASLR.
4141
42
+- Build the gdb scripts (required on kernels v5.1 and above)::
43
+
44
+ make scripts_gdb
45
+
4246 - Enable the gdb stub of QEMU/KVM, either
4347
4448 - at VM startup time by appending "-s" to the QEMU command line