feature (build system): added 'debug' mode to run script
This commit is contained in:
parent
d751d35a71
commit
5d0a55e35f
|
@ -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
|
||||
}
|
||||
|
||||
case $1 in
|
||||
"debug")
|
||||
emulate_debug
|
||||
;;
|
||||
*)
|
||||
emulate
|
||||
;;
|
||||
esac
|
Loading…
Reference in New Issue