From 5d0a55e35fb1997d55d4fbe174e8c20c511a3636 Mon Sep 17 00:00:00 2001 From: antifallobst Date: Thu, 9 Feb 2023 13:27:19 +0100 Subject: [PATCH] feature (build system): added 'debug' mode to run script --- run.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) mode change 100644 => 100755 run.sh 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