diff options
author | Sergey Bugaev <bugaevc@serenityos.org> | 2020-05-06 18:40:06 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-14 20:15:18 +0200 |
commit | 450a2a0f9ce2443bc06445ee018c9860d8cd5fc8 (patch) | |
tree | c124a612ef259b764855af5e33c39e0d09ad4df2 /Meta/debug-kernel.sh | |
parent | 49727ffee424d8c0038ce18b91b0bf0ff33b1a4d (diff) | |
download | serenity-450a2a0f9ce2443bc06445ee018c9860d8cd5fc8.zip |
Build: Switch to CMake :^)
Closes https://github.com/SerenityOS/serenity/issues/2080
Diffstat (limited to 'Meta/debug-kernel.sh')
-rwxr-xr-x | Meta/debug-kernel.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Meta/debug-kernel.sh b/Meta/debug-kernel.sh new file mode 100755 index 0000000000..c7cd462759 --- /dev/null +++ b/Meta/debug-kernel.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# Set this environment variable to override the default debugger. +# +[ -z "$SERENITY_KERNEL_DEBUGGER" ] && SERENITY_KERNEL_DEBUGGER="gdb" + +# The QEMU -s option (enabled by default in ./run) sets up a debugger +# remote on localhost:1234. So point our debugger there, and inform +# the debugger which binary to load symbols, etc from. +# +$SERENITY_KERNEL_DEBUGGER \ + -ex "file $(pwd)/kernel" \ + -ex 'set arch i386:intel' \ + -ex 'target remote localhost:1234' |