mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
Meta: Disable gdbstub when running under HVF on macOS
Without this, `serenity.sh run` fails with gdbstub: current accelerator doesn't support guest debugging on an intel mac.
This commit is contained in:
parent
0bda06c9c5
commit
15ce757f12
Notes:
sideshowbarker
2024-07-17 10:16:43 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/15ce757f12 Pull-request: https://github.com/SerenityOS/serenity/pull/16578 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 6 additions and 0 deletions
|
@ -237,6 +237,12 @@ if command -v wslpath >/dev/null; then
|
|||
SERENITY_DISABLE_GDB_SOCKET=1
|
||||
fi
|
||||
|
||||
if [ "$(uname)" = "Darwin" ] &&
|
||||
[ "${SERENITY_VIRT_TECH_ARG}" = "--accel hvf" ]; then
|
||||
# HVF doesn't support gdbstub per https://wiki.qemu.org/Features/HVF
|
||||
SERENITY_DISABLE_GDB_SOCKET=1
|
||||
fi
|
||||
|
||||
if [ -z "$SERENITY_DISABLE_GDB_SOCKET" ]; then
|
||||
SERENITY_EXTRA_QEMU_ARGS="$SERENITY_EXTRA_QEMU_ARGS -gdb tcp:${SERENITY_HOST_IP}:1234"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue