From: Tom Tromey Date: Wed, 28 Jul 2010 20:20:12 +0000 (+0000) Subject: 2010-07-28 Oleg Nesterov X-Git-Tag: gdb_7_2-2010-09-02-release~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eaf2a8069f08a06c51c5a75a974a99459e6a1efc;p=thirdparty%2Fbinutils-gdb.git 2010-07-28 Oleg Nesterov * remote.c (readchar): Call pop_target in case of SERIAL_ERROR. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c665d6a3ee4..aba6ee1455b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-07-28 Oleg Nesterov + + * remote.c (readchar): Call pop_target in case of SERIAL_ERROR. + 2010-07-28 Tom Tromey * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h. diff --git a/gdb/remote.c b/gdb/remote.c index 71eee5d892a..e03a6112882 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;