diff options
author | Stefan Hajnoczi <stefanha@gmail.com> | 2008-06-16 13:18:20 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2008-06-30 19:19:48 +0100 |
commit | 7eb555a8ae87202909e5e1c759149bc2375bb9f5 (patch) | |
tree | 7060af82f34c2c29006c273443ad57cbde274059 /src/core | |
parent | fe79edfc3d95ec5aa86248f11eba1fd37c073533 (diff) | |
download | ipxe-7eb555a8ae87202909e5e1c759149bc2375bb9f5.tar.gz |
[GDB] Obey flow control when GDB connects.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/gdbstub.c | 4 |
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; } } |