Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] remote target interrupt before ack
@ 2011-04-04 20:00 Michael Walle
  2011-04-04 20:21 ` Pedro Alves
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Walle @ 2011-04-04 20:00 UTC (permalink / raw)
  To: gdb-patches

Hi,

the following patch puts the sending of the interrupt/break sequence before 
the proforma ACK. This guarantees the ACK won't be delivered to an application 
on the remote side.


--- remote.c.orig       2011-04-03 22:01:56.000000000 +0200
+++ remote.c    2011-04-03 22:02:02.000000000 +0200
@@ -2948,12 +2948,12 @@
 
   immediate_quit++;            /* Allow user to interrupt it.  */
 
-  /* Ack any packet which the remote side has already sent.  */
-  serial_write (remote_desc, "+", 1);
-
   if (interrupt_on_connect)
     send_interrupt_sequence ();
 
+  /* Ack any packet which the remote side has already sent.  */
+  serial_write (remote_desc, "+", 1);
+
   /* The first packet we send to the target is the optional "supported
      packets" request.  If the target can answer this, it will tell us
      which later probes to skip.  */


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-04-26 15:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-04 20:00 [PATCH] remote target interrupt before ack Michael Walle
2011-04-04 20:21 ` Pedro Alves
2011-04-04 20:38   ` Michael Walle
2011-04-05 16:10     ` Pedro Alves
2011-04-26 11:01       ` Michael Walle
2011-04-26 15:40         ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox