aboutsummaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@gmail.com>2008-06-16 13:18:20 +0100
committerMichael Brown <mcb30@etherboot.org>2008-06-30 19:19:48 +0100
commit7eb555a8ae87202909e5e1c759149bc2375bb9f5 (patch)
tree7060af82f34c2c29006c273443ad57cbde274059 /src/core
parentfe79edfc3d95ec5aa86248f11eba1fd37c073533 (diff)
downloadipxe-7eb555a8ae87202909e5e1c759149bc2375bb9f5.tar.gz
[GDB] Obey flow control when GDB connects.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/gdbstub.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/gdbstub.c b/src/core/gdbstub.c
index 8e338775..bbed344f 100644
--- a/src/core/gdbstub.c
+++ b/src/core/gdbstub.c
@@ -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;
}
}