aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-04-26 15:40:57 +0000
committerTom Tromey <tromey@redhat.com>2011-04-26 15:40:57 +0000
commit57e12211870702c4cc13ba05e6a7182d885b18c9 (patch)
treeea36b09249aa76661f0d766ada9ba2dd55d44c99 /gdb
parentaf96c192dc633d0a7a2380d7fbaccd43c039f38f (diff)
downloadgdb-57e12211870702c4cc13ba05e6a7182d885b18c9.zip
gdb-57e12211870702c4cc13ba05e6a7182d885b18c9.tar.gz
gdb-57e12211870702c4cc13ba05e6a7182d885b18c9.tar.bz2
2011-04-26 Michael Walle <michael@walle.cc>
* remote.c (remote_start_remote): Ack packet after sending the interrupt sequence.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/remote.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6ce4407..6658e74 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-26 Michael Walle <michael@walle.cc>
+
+ * remote.c (remote_start_remote): Ack packet after sending the
+ interrupt sequence.
+
2011-04-26 Yao Qi <yao@codesourcery.com>
* linux-nat.c: Move common macros to ...
diff --git a/gdb/remote.c b/gdb/remote.c
index fdb4573..9a0eae0 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -3162,12 +3162,12 @@ remote_start_remote (int from_tty, struct target_ops *target, int extended_p)
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. */