Peter Jansen schrieb:
So what about starting the programming effort to implement gdbproxy (the commands received from gdb are quite simple) whith the information in slaa149c as a starting point. Then once the run/halt/memory read/write and flash read/write are implemented we can set about figuring out how TI set breakpoints and read registers from a part attached to the JTAG port.
reading and writing registers is possible using "mov Rx, &dummy_address" and exchanging src and dest to write. this is present in my MSP430mspgcc.dll implementation.
memory read write is also done in the library (however writing flash erases RAM contents, so a debugger has to backup the RAM in some situations)
the non public, missing parts are "run to breakpoint" setting breakpoints of different types and single stepping (though the last one can be done with public informations, i.e. read next opcode, calculate cycles on the PC and supply MCLK over JTAG. thats the ways the mov Rx, &adr commands are executed. this is documented in the application note under the SetPC command)
chris
