opt_interactive=
opt_drivespec=
+ opt_debug=
+ opt_pause=
while getopts "${myoptstr}" opt; do
case "$opt" in
b)
i)
opt_interactive=1
;;
+ p)
+ opt_pause="-S"
+ ;;
+ D)
+ opt_debug="-gdb tcp::${OPTARG}"
+ opt_pause="-S"
+ ;;
*)
err qemu stack like zathras: not so good
;;
done
shift $((${OPTIND}-1))
- qemucmd="qemu-system-i386 -net none -no-kvm ${opt_drivespec} -kernel $1"
+ qemucmd="qemu-system-i386 -net none -no-kvm ${opt_drivespec} \
+ ${opt_debug} ${opt_pause} -kernel $1"
if [ -n "$opt_interactive" ]; then
${qemucmd}
else