http://git.etherboot.org
/
people
/
mdeck
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe79edf
)
[GDB] Obey flow control when GDB connects.
author
Stefan Hajnoczi
<stefanha@gmail.com>
Mon, 16 Jun 2008 12:18:20 +0000
(13:18 +0100)
committer
Michael Brown
<mcb30@etherboot.org>
Mon, 30 Jun 2008 18:19:48 +0000
(19:19 +0100)
src/core/gdbstub.c
patch
|
blob
|
history
diff --git
a/src/core/gdbstub.c
b/src/core/gdbstub.c
index
8e33877
..
bbed344
100644
(file)
--- 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;
}
}