mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[GDB] Obey flow control when GDB connects.
This commit is contained in:
committed by
Michael Brown
parent
fe79edfc3d
commit
7eb555a8ae
@@ -350,6 +350,10 @@ static void gdbstub_state_wait_ack ( struct gdbstub *stub, char ch ) {
|
|||||||
stub->parse = gdbstub_state_new;
|
stub->parse = gdbstub_state_new;
|
||||||
} else if ( ch == '-' ) {
|
} else if ( ch == '-' ) {
|
||||||
gdbstub_tx_packet ( stub ); /* retransmit */
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user