mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
Meta: Disable KASLR when debugging the kernel with GDB
This lets GDB resolve the kernel symbols correctly.
This commit is contained in:
parent
f9c6f37bac
commit
45c5fcf5cb
1 changed files with 2 additions and 0 deletions
|
@ -464,6 +464,8 @@ elif [ "$CMD" = "__tmux_cmd" ]; then
|
|||
fi
|
||||
# We need to make sure qemu doesn't start until we continue in gdb
|
||||
export SERENITY_EXTRA_QEMU_ARGS="${SERENITY_EXTRA_QEMU_ARGS} -d int -no-reboot -no-shutdown -S"
|
||||
# We need to disable kaslr to let gdb map the kernel symbols correctly
|
||||
export SERENITY_KERNEL_CMDLINE="${SERENITY_KERNEL_CMDLINE} disable_kaslr"
|
||||
set_tmux_title 'qemu'
|
||||
build_target run
|
||||
elif [ "$CMD" = "gdb" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue