Breakpoint Handling in GDB

Veenu Verma (AS/EAB)
2006-08-30T13:40:54Z

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 ?

Thanx
Veenu