Running code

Logic might tell you to type 'run' in order to run the program. Don't. msp430-gdb is built upon the standard GNU GDB, and inherits all its behaviour. The 'run' command is appropriate for starting a program being debugged on the host. For an embedded target processor the correct command is 'continue', or just 'c'.

If the code hits a breakpoint it will stop. Otherwise you need to type ^C (control-C) to interrupt the target processor. Assuming you compiled 'foo' with the -g flag, msp430-gdb will tell you exactly where it was interrupted, and let you inspect the state of registers, memory, variables, and so on. In fact, all the normal things you would expect from any other implementation of GDB.