diff --git a/run.sh b/run.sh old mode 100644 new mode 100755 index 3194a8b..7582ae9 --- a/run.sh +++ b/run.sh @@ -3,12 +3,21 @@ EMUFLAGS="-no-reboot -m 256M -cdrom build/noxos.iso -chardev stdio,id=log,logfile=noxos.log -serial chardev:log" emulate() { + echo "<=====| Emulating with disabled debug mode |=====>" qemu-system-x86_64 $EMUFLAGS } # qemu will wait for gdb to connect, before booting emulate_debug() { + echo "<=====| Emulating in debug mode |=====>" qemu-system-x86_64 -s -S $EMUFLAGS } -emulate_debug \ No newline at end of file +case $1 in + "debug") + emulate_debug + ;; + *) + emulate + ;; +esac \ No newline at end of file