From: Pedro Alves <palves@redhat.com>
To: "Breazeal, Don" <donb@codesourcery.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: problem with new vforkdone stop reply in 7.10
Date: Tue, 15 Sep 2015 18:14:00 -0000 [thread overview]
Message-ID: <55F86017.10504@redhat.com> (raw)
In-Reply-To: <55F8307D.5090305@redhat.com>
On 09/15/2015 03:51 PM, Pedro Alves wrote:
>
> diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
> index 395f0d4..3ac8c43 100644
> --- a/gdb/doc/gdb.texinfo
> +++ b/gdb/doc/gdb.texinfo
> @@ -35498,10 +35498,11 @@ indicating support.
>
> @cindex vforkdone events, remote reply
> @item vforkdone
> -The packet indicates that a child process created by a vfork
> -has either called @code{exec} or terminated, so that the
> -address spaces of the parent and child process are no longer
> -shared. The @var{r} part is ignored. This packet is only
> +The packet indicates that a child process created by a vfork has
> +either called @code{exec} or terminated, so that the address spaces of
> +the parent and child process are no longer shared. The @var{r} part is
> +the thread ID of the parent process. Refer to @ref{thread-id syntax}
> +for the format of the @var{thread-id} field. This packet is only
> applicable to targets that support vforkdone events.
>
Actually, I don't know what I was thinking when I wrote that docs
patch. What I really think we should be doing is report the parent
thread id with the usual "thread" magic register:
Sending packet: $vCont;c:p7260.7260#1e...Packet received: OK
- Notification received: Stop:T05vforkdone:;
+ Notification received: Stop:T05vforkdone:;06:40d7ffffff7f0000;07:30d7ffffff7f0000;10:e4c9eb1536000000;thread:p7260.7260;core:3;
^^^^^^^^^^^^^^^^^
This is already how the parent is reported in the vfork/fork events,
and is actually what the code fix did. But somehow I blindly copied
that "{r} part is the thread ID" doc bit from the fork event docu
without realizing I was documenting it wrong. My bad...
I'll fix that up.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2015-09-15 18:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-15 14:19 Pedro Alves
2015-09-15 14:51 ` Pedro Alves
2015-09-15 15:46 ` Don Breazeal
2015-09-15 15:56 ` Pedro Alves
2015-09-15 18:14 ` Pedro Alves [this message]
2015-09-15 14:51 ` Don Breazeal
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=55F86017.10504@redhat.com \
--to=palves@redhat.com \
--cc=donb@codesourcery.com \
--cc=gdb@sourceware.org \
/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