aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-07-28 20:20:26 +0000
committerTom Tromey <tromey@redhat.com>2010-07-28 20:20:26 +0000
commit4ac8c4da1d26746d82e7c41e5eb2e9215d10e8a2 (patch)
tree3095d1dca61db799927df57e91621bdb53e9f09d /gdb/remote.c
parent053315c2134b7832b351c599fa3fa11abf6ca4e7 (diff)
downloadgdb-4ac8c4da1d26746d82e7c41e5eb2e9215d10e8a2.zip
gdb-4ac8c4da1d26746d82e7c41e5eb2e9215d10e8a2.tar.gz
gdb-4ac8c4da1d26746d82e7c41e5eb2e9215d10e8a2.tar.bz2
2010-07-28 Oleg Nesterov <oleg@redhat.com>
* remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index e42e57f..d6c20f3 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -6667,7 +6667,8 @@ readchar (int timeout)
error (_("Remote connection closed"));
/* no return */
case SERIAL_ERROR:
- perror_with_name (_("Remote communication error"));
+ pop_target ();
+ perror_with_name (_("Remote communication error. Target disconnected."));
/* no return */
case SERIAL_TIMEOUT:
break;