mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 05:05:32 +03:00
389dddd4b3
This script automatically manages the toolchain and cmake/ninja folders making it easier to manage the different target architectures.
15 lines
522 B
Bash
Executable File
15 lines
522 B
Bash
Executable File
#!/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 $(dirname "$0")/../Build/${SERENITY_ARCH:-i686}/Kernel/Kernel" \
|
|
-ex 'set arch i386:intel' \
|
|
-ex 'target remote localhost:1234'
|