Re: Breakpoint Handling in GDB

Daniel Jacobowitz
2006-08-30T13:43:52Z

On Wed, Aug 30, 2006 at 03:40:21PM +0200, Veenu Verma (AS/EAB) wrote:
> Hello
> I was going through the gdb internals on software breakpoint handling
> and have a question regarding that.
> Gdb replaces the program instruction with a trap which means target does
> not have any control over setting a bp.
> What happens if the connection with the gdb breaks down ?
> Does it mean that the illegal instruction won't be restored and the
> application will crash ?
> If that's the case, then how can it be handled ?

Implement the z0/Z0 packets in your stub instead, and then GDB will use
them.

--
Daniel Jacobowitz
CodeSourcery