|
@@ -344,12 +344,10 @@ static void gdbstub_state_cksum2 ( struct gdbstub *stub, char ch ) {
|
344
|
344
|
static void gdbstub_state_wait_ack ( struct gdbstub *stub, char ch ) {
|
345
|
345
|
if ( ch == '+' ) {
|
346
|
346
|
stub->parse = gdbstub_state_new;
|
347
|
|
- } else if ( ch == '-' ) {
|
348
|
|
- gdbstub_tx_packet ( stub ); /* retransmit */
|
349
|
|
- } else if ( ch == '$' ) {
|
350
|
|
- /* GDB is reconnecting, drop our packet and listen to GDB */
|
351
|
|
- stub->trans->send ( "-", 1 );
|
352
|
|
- stub->parse = gdbstub_state_new;
|
|
347
|
+ } else {
|
|
348
|
+ /* This retransmit is very aggressive but necessary to keep
|
|
349
|
+ * in sync with GDB. */
|
|
350
|
+ gdbstub_tx_packet ( stub );
|
353
|
351
|
}
|
354
|
352
|
}
|
355
|
353
|
|