2010-07-28 Oleg Nesterov <oleg@redhat.com>

* remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
This commit is contained in:
Tom Tromey 2010-07-28 20:20:26 +00:00
parent 053315c213
commit 4ac8c4da1d
2 changed files with 6 additions and 1 deletions

View 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-27 Tom Tromey <tromey@redhat.com>
* dwarf2read.c (dwarf2_const_value_data): Never sign extend.

View 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;