summaryrefslogtreecommitdiff
path: root/Meta/debug-kernel.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Meta/debug-kernel.sh')
-rwxr-xr-xMeta/debug-kernel.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/Meta/debug-kernel.sh b/Meta/debug-kernel.sh
index 471808e358..0f78ee6ceb 100755
--- a/Meta/debug-kernel.sh
+++ b/Meta/debug-kernel.sh
@@ -8,7 +8,9 @@
# remote on localhost:1234. So point our debugger there, and inform
# the debugger which binary to load symbols, etc from.
#
-$SERENITY_KERNEL_DEBUGGER \
+exec $SERENITY_KERNEL_DEBUGGER \
-ex "file $(dirname "$0")/../Build/${SERENITY_ARCH:-i686}/Kernel/Kernel" \
-ex 'set arch i386:intel' \
- -ex 'target remote localhost:1234'
+ -ex 'target remote localhost:1234' \
+ -ex "source $(dirname "$0")/serenity_gdb.py" \
+ "$@"