Browse Source

[GDB] Obey flow control when GDB connects.

tags/v0.9.4
Stefan Hajnoczi 16 years ago
parent
commit
7eb555a8ae
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/core/gdbstub.c

+ 4
- 0
src/core/gdbstub.c View File

350
 		stub->parse = gdbstub_state_new;
350
 		stub->parse = gdbstub_state_new;
351
 	} else if ( ch == '-' ) {
351
 	} else if ( ch == '-' ) {
352
 		gdbstub_tx_packet ( stub ); /* retransmit */
352
 		gdbstub_tx_packet ( stub ); /* retransmit */
353
+	} else if ( ch == '$' ) {
354
+		/* GDB is reconnecting, drop our packet and listen to GDB */
355
+		stub->trans->send ( "-", 1 );
356
+		stub->parse = gdbstub_state_new;
353
 	}
357
 	}
354
 }
358
 }
355
 
359
 

Loading…
Cancel
Save