1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:34:59 +00:00

Meta+Documentation: Allow cross-debugging x86_64 Serenity on M1 Macs

While there is no native GDB on Apple Silicon, a cross-debugger that
supports x86-64 does exist.
This commit is contained in:
Daniel Bertalan 2023-03-11 20:09:10 +01:00 committed by Andreas Kling
parent 59ba94a2d2
commit b668000e44
2 changed files with 11 additions and 1 deletions

View file

@ -14,7 +14,11 @@ if [ -z "$SERENITY_KERNEL_DEBUGGER" ]; then
PATH="$SCRIPT_DIR/../Toolchain/Local/aarch64/bin:$PATH"
SERENITY_KERNEL_DEBUGGER="aarch64-pc-serenity-gdb"
else
SERENITY_KERNEL_DEBUGGER="gdb"
if command -v x86_64-elf-gdb >/dev/null 2>&1; then
SERENITY_KERNEL_DEBUGGER="x86_64-elf-gdb"
else
SERENITY_KERNEL_DEBUGGER=gdb
fi
fi
fi