Serenity Operating System
1#!/bin/sh
2
3# Set this environment variable to override the default debugger.
4#
5[ -z "$SERENITY_KERNEL_DEBUGGER" ] && SERENITY_KERNEL_DEBUGGER="gdb"
6
7# The QEMU -s option (enabled by default in ./run) sets up a debugger
8# remote on localhost:1234. So point our debugger there, and inform
9# the debugger which binary to load symbols, etc from.
10#
11$SERENITY_KERNEL_DEBUGGER \
12 -ex "file $(pwd)/kernel" \
13 -ex 'set arch i386:intel' \
14 -ex 'target remote localhost:1234'