Skip to content

Commit

Permalink
[GDB] Obey flow control when GDB connects.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanha authored and Michael Brown committed Jun 30, 2008
1 parent fe79edf commit 7eb555a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/gdbstub.c
Expand Up @@ -350,6 +350,10 @@ static void gdbstub_state_wait_ack ( struct gdbstub *stub, char ch ) {
stub->parse = gdbstub_state_new;
} else if ( ch == '-' ) {
gdbstub_tx_packet ( stub ); /* retransmit */
} else if ( ch == '$' ) {
/* GDB is reconnecting, drop our packet and listen to GDB */
stub->trans->send ( "-", 1 );
stub->parse = gdbstub_state_new;
}
}

Expand Down

0 comments on commit 7eb555a

Please sign in to comment.