Kernel Debugging with QEMU: Difference between revisions
link to PR that fixes building the gdb integration script |
m Add link for more info about patching and configuring the kernel |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Set up the QEMU VM == | == Set up the QEMU VM == | ||
=== With a Nix kernel === | === With a Nix-built kernel === | ||
Use a NixOS config like | Use a NixOS config like below. See [[Linux kernel#Custom configuration]] for more information about patching and configuring the kernel's build. | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
| Line 21: | Line 21: | ||
name = "enable debugging information"; | name = "enable debugging information"; | ||
patch = null; | patch = null; | ||
structuredExtraConfig = { | |||
GDB_SCRIPTS | GDB_SCRIPTS = lib.kernel.yes; | ||
DEBUG_INFO | DEBUG_INFO = lib.kernel.yes; | ||
KALLSYMS | KALLSYMS = lib.kernel.yes; | ||
}; | |||
} | } | ||
{ | { | ||