#!/usr/bin/env bash
# $1 is the 'machine' to emulate. 'qemu-system-arm -M ?' for a list of machines
# $2 is the bin file to execute
qemu-system-arm -s -S -cpu arm1176 -M $1 -m 128M -nographic -no-reboot -kernel $2

Add -s and -S when starting qemu-system-arm so we can use gdb.
Add -s and -S when starting qemu-system-arm so we can use gdb.

Option -S freeze qemu and you need to use continue to start execution.

Option -s is short hand for setting up a remote connection to
localhost:1234.
