From: Tom Tromey <tromey@redhat.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org, Oleg Nesterov <oleg@redhat.com>
Subject: Re: [Oleg Nesterov] PATCH? gdb remote.c: readchar() should pop_target() if SERIAL_ERROR?
Date: Wed, 28 Jul 2010 20:20:00 -0000 [thread overview]
Message-ID: <m339v3mk9o.fsf@fleche.redhat.com> (raw)
In-Reply-To: <201007282049.14873.pedro@codesourcery.com> (Pedro Alves's message of "Wed, 28 Jul 2010 20:49:14 +0100")
>>>>> "Pedro" == Pedro Alves <pedro@codesourcery.com> writes:
Pedro> Talking in terms of Linux kernel internals, eh?
Yeah, see the discussion on the archer list...
Pedro> ... thus, I have no problems with this. Could you tweak the
Pedro> string to say something like:
Pedro> "Remote communication error. Target disconnected."
Pedro> so that user is informed we're no longer talking to the
Pedro> target?.
Pedro> Okay with that change.
Thank you. Here is the patch I am committing.
I'm putting it in 7.2 as well.
Tom
2010-07-28 Oleg Nesterov <oleg@redhat.com>
* remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.420
diff -u -r1.420 remote.c
--- remote.c 28 Jul 2010 18:04:19 -0000 1.420
+++ remote.c 28 Jul 2010 20:19:02 -0000
@@ -6667,7 +6667,8 @@
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;
prev parent reply other threads:[~2010-07-28 20:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-09 19:57 Tom Tromey
2010-07-12 18:11 ` Michael Snyder
2010-07-27 21:55 ` Michael Snyder
2010-07-28 17:28 ` Tom Tromey
2010-07-28 19:49 ` Pedro Alves
2010-07-28 20:20 ` Tom Tromey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m339v3mk9o.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=oleg@redhat.com \
--cc=pedro@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).