Kernel Debugging with QEMU: Difference between revisions
imported>Mic92 add hints about breakpoints |
imported>Luis-Hebendanz No edit summary |
||
| Line 34: | Line 34: | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
$ cd linux | $ cd linux | ||
$ make mrproper # Has to be done if .config changes, clears artifacts | |||
$ nix-shell shell.nix | $ nix-shell shell.nix | ||
$ make x86_64_defconfig | $ make x86_64_defconfig | ||
$ make kvmconfig | $ make kvmconfig | ||
$ scripts/config --set-val DEBUG_INFO y # For gdb debug symbols | $ scripts/config --set-val DEBUG_INFO y # For gdb debug symbols | ||
$ scripts/config --set-val DEBUG y # All pr_debug messages get printed | |||
$ scripts/config --set-val GDB_SCRIPTS y | $ scripts/config --set-val GDB_SCRIPTS y | ||
$ scripts/config --set-val DEBUG_DRIVER y # Enable printk messages in drivers | $ scripts/config --set-val DEBUG_DRIVER y # Enable printk messages in drivers | ||