diff --git a/kernel/scripts/gdb.sh b/kernel/scripts/gdb.sh index 5888972a..085fb956 100755 --- a/kernel/scripts/gdb.sh +++ b/kernel/scripts/gdb.sh @@ -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