From 450a2a0f9ce2443bc06445ee018c9860d8cd5fc8 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Wed, 6 May 2020 18:40:06 +0300 Subject: Build: Switch to CMake :^) Closes https://github.com/SerenityOS/serenity/issues/2080 --- Meta/debug-kernel.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 Meta/debug-kernel.sh (limited to 'Meta/debug-kernel.sh') 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' -- cgit v1.2.3