summaryrefslogtreecommitdiff
path: root/meta/debug.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta/debug.sh')
-rwxr-xr-x[-rw-r--r--]meta/debug.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/debug.sh b/meta/debug.sh
index 7fcb185..d1eeedb 100644..100755
--- a/meta/debug.sh
+++ b/meta/debug.sh
@@ -1,3 +1,6 @@
#!/bin/sh
-qemu-system-i386 -no-reboot -no-shutdown -serial file:./logs/serial.log -hda ext2.img -m 1G -cdrom ./kernel/myos.iso -s -S &
+scriptdir="$(dirname "$0")"
+cd "$scriptdir"
+cd ..
+qemu-system-i386 -no-reboot -no-shutdown -serial file:./logs/serial.log -hda ./meta/ext2.img -m 1G -cdrom ./kernel/myos.iso -s -S &
gdb -x .gdbinit