fix(gdb.sh): architecture selection

This commit is contained in:
llenotre 2024-10-04 01:12:20 +02:00
parent 7da67c409a
commit 866c8065ce

View File

@ -6,13 +6,14 @@
# - ARCH: specifies the architecture to build for
# - AUX_ELF: specifies the path to an auxiliary ELF file whose symbols will be added to gdb
export QEMUFLAGS="$QEMUFLAGS -s -S -d int"
setsid cargo run $CARGOFLAGS >qemu.log 2>&1 &
QEMU_PID=$!
if [ -z "$ARCH" ]; then
ARCH="x86_64"
fi
export QEMUFLAGS="$QEMUFLAGS -s -S -d int"
setsid cargo run $CARGOFLAGS --target arch/$ARCH/$ARCH.json >qemu.log 2>&1 &
QEMU_PID=$!
KERN_PATH="target/$ARCH/debug/maestro"
if ! [ -z "$AUX_ELF" ]; then