echo Setting up the environment for debugging gdb.\n

set complaints 1
set endian big

dir .
set prompt (ns9xxx) 

# listening for commands on this PC's tcp port 2331
target remote localhost:2331
monitor speed 5000
# Set target to write short/long values in big-endian
monitor endian big 

# Reset the chip to get to a known state.
monitor reset 1

# Show registers after Reset. PC should be 0, CPSR = 0xD3

# load image.elf   # Load the program executable called "image.elf"
# Load the symbols for the program.
symbol  ./rom.elf


