#!/bin/bash EMUFLAGS="-no-reboot -m 256M -cdrom build/noxos.iso -chardev stdio,id=log,logfile=noxos.log -serial chardev:log" emulate() { qemu-system-x86_64 $EMUFLAGS } # qemu will wait for gdb to connect, before booting emulate_debug() { qemu-system-x86_64 -s -S $EMUFLAGS } emulate_debug