David Pettit wrote:
When I run msp430-gdb and enter a function and then try to set a breakpoint,
it initially tells me that it set the breakpoint. However, when I tell it to
continue, it gives me the following warning: "Warning: Cannot insert breakpoint 4.

there are two "debug modes" in the MSP430 devices, the older that works for all targets, that is in use in msp430-gdbproxy, only supports 2 to 3 breakpoints at a time (see device data sheets).

gdb activates the breakpoint when you 'continue', that's the reason for the delayed error message. they do this because of software breakpoints that work trough patching the memory with a software interrupt instruction (unfortunately not possible on the msp430 as there is no single word instruction that can generate an interrupt and the flash memory is not suitable for patching memory location before and after each debug step)

chris

Reply via email to