mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +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
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
Add a link
Reference in a new issue