]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2010-07-28 Oleg Nesterov <oleg@redhat.com>
authorTom Tromey <tromey@redhat.com>
Wed, 28 Jul 2010 20:20:12 +0000 (20:20 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 28 Jul 2010 20:20:12 +0000 (20:20 +0000)
* remote.c (readchar): Call pop_target in case of SERIAL_ERROR.

gdb/ChangeLog
gdb/remote.c

index c665d6a3ee46d8d85d06254ca4f0918edfeefb14..aba6ee1455b1e4baefc561ba1379e78e70e913b6 100644 (file)
@@ -1,3 +1,7 @@
+2010-07-28  Oleg Nesterov  <oleg@redhat.com>
+
+       * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
+
 2010-07-28  Tom Tromey  <tromey@redhat.com>
 
        * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
index 71eee5d892abd1ee6ab04fa29fc5b44b9c61cc75..e03a6112882c1229d5c387c256c8b1b0750e05be 100644 (file)
@@ -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;