mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 19:51:35 +01:00
run: OK, I give in, --debug-vm-file is on
This commit is contained in:
@@ -9922,6 +9922,15 @@ Or for a faster development loop:
|
||||
./run --debug-vm-args '-ex "break qemu_add_opts" -ex "run"'
|
||||
....
|
||||
|
||||
Or if things get really involved and you want a debug script:
|
||||
|
||||
....
|
||||
printf 'break qemu_add_opts
|
||||
run
|
||||
' > data/vm.gdb
|
||||
./run --debug-vm-file data/vm.gdb
|
||||
....
|
||||
|
||||
Our default emulator builds are optimized with `gcc -O2 -g`. To use `-O0` instead, build and run with:
|
||||
|
||||
....
|
||||
|
||||
Reference in New Issue
Block a user