From: Pedro Alves <palves@redhat.com>
To: Yao Qi <yao@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Attach discard_pending_stop_replies to observer inferior_exit
Date: Fri, 14 Dec 2012 09:53:00 -0000 [thread overview]
Message-ID: <50CAF720.9040704@redhat.com> (raw)
In-Reply-To: <1354848657-10348-1-git-send-email-yao@codesourcery.com>
On 12/07/2012 02:50 AM, Yao Qi wrote:
> --- a/gdb/remote.c
> +++ b/gdb/remote.c
> @@ -229,7 +229,6 @@ static void do_stop_reply_xfree (void *arg);
> static void remote_parse_stop_reply (char *buf, struct stop_reply *);
> static void push_stop_reply (struct stop_reply *);
> static void remote_get_pending_stop_replies (void);
> -static void discard_pending_stop_replies (int pid);
> static int peek_stop_reply (ptid_t ptid);
>
> static void remote_async_inferior_event_handler (gdb_client_data);
> @@ -3022,9 +3021,6 @@ remote_close (int quitting)
> inferior_ptid = null_ptid;
> discard_all_inferiors ();
>
> - /* We're no longer interested in any of these events. */
> - discard_pending_stop_replies (-1);
GDB can be learning about new processes it didn't know about yet
from some yet-unprocessed stop reply. So if we only clear stop replies
specific to each inferior, we'd leave those behind. But, we're closing
the remote target here. We really want to discard everything.
--
Pedro Alves
next prev parent reply other threads:[~2012-12-14 9:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-07 2:51 Yao Qi
2012-12-14 1:57 ` [ping]: " Yao Qi
2012-12-14 9:53 ` Pedro Alves [this message]
2012-12-14 13:30 ` Yao Qi
2012-12-14 13:48 ` Pedro Alves
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=50CAF720.9040704@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=yao@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