Kernel Debugging with QEMU: Difference between revisions

Raboof (talk | contribs)
document how to debug a nix-built kernel including modules and sources
Raboof (talk | contribs)
link to PR that fixes building the gdb integration script
Line 56: Line 56:


==== Loading module symbols and accurate kernel sources ====
==== Loading module symbols and accurate kernel sources ====
Make sure you're using a branch of nixpkgs that has https://github.com/NixOS/nixpkgs/pull/432405 applied.


This generates a script that starts gdb with module symbols and kernel sources attached:
This generates a script that starts gdb with module symbols and kernel sources attached: