public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Farre <simon.farre.cx@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Simon Farre via Gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH v2] gdb/Python: Added ThreadExitedEvent
Date: Mon, 18 Apr 2022 11:38:14 +0200	[thread overview]
Message-ID: <CACx6OkxE2VQUMneD+JM6-86WXrt7yJ3HPOsToo6Wf7ARtgUJOQ@mail.gmail.com> (raw)
In-Reply-To: <83v8va1660.fsf@gnu.org>

I was unaware of the LWP not being cross-platform, perhaps this field
should be removed then?
Or is there some relevant/similar info on other platforms that can be
returned here (and by that
logic, also change the attribute to a name that logically could explain the
attribute in a cross-platform
manner?)

On Fri, Apr 15, 2022 at 9:46 PM Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Tue, 12 Apr 2022 11:03:15 +0200
> > From: Simon Farre via Gdb-patches <gdb-patches@sourceware.org>
> >
> > diff --git a/gdb/NEWS b/gdb/NEWS
> > index 760cb2b7abc..985121d5818 100644
> > --- a/gdb/NEWS
> > +++ b/gdb/NEWS
> > @@ -38,6 +38,9 @@ maintenance info line-table
> >       This is the same format that GDB uses when printing address,
> symbol,
> >       and offset information from the disassembler.
> >
> > +  ** gdb.ThreadExitedEvent added. Emits LWP ID, TID and GLOBAL NUM of
> the
> > +     exiting thread.
> > +
> >  *** Changes in GDB 12
>
> This part is OK.
>
> > diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
> > index 7c414b01d70..9a410dc18f8 100644
> > --- a/gdb/doc/python.texi
> > +++ b/gdb/doc/python.texi
> > @@ -3568,6 +3568,22 @@ This has a single attribute:
> >  The new thread.
> >  @end defvar
> >
> > +@item events.thread_exited
> > +This is emitted when @value{GDBN} notices a thread has exited.  The
> event
> > +is of type @code{gdb.ThreadExitedEvent}.  This has three attributes:
> > +
> > +@defvar ThreadExitedEvent.num
> > +Global thread number.
> > +@end defvar
> > +
> > +@defvar ThreadExitedEvent.lwp
> > +The light weight process ID.
> > +@end defvar
> > +
> > +@defvar ThreadExitedEvent.tid
> > +The thread's thread id
> > +@end defvar
>
> This is also OK, but I wonder whether we should say something about
> the lwp part that it isn't available on all platforms?
>

  reply	other threads:[~2022-04-18  9:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-12  9:03 Simon Farre
2022-04-15 18:06 ` Tom Tromey
2022-04-18 10:30   ` Simon Farre
2022-04-18 13:57     ` Tom Tromey
2022-04-15 19:46 ` Eli Zaretskii
2022-04-18  9:38   ` Simon Farre [this message]
2022-04-18  9:41     ` Eli Zaretskii
2022-04-18 13:58     ` Tom Tromey
2022-04-18 16:19 ` Pedro Alves
2022-04-19 11:42   ` Simon Farre

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=CACx6OkxE2VQUMneD+JM6-86WXrt7yJ3HPOsToo6Wf7ARtgUJOQ@mail.gmail.com \
    --to=simon.farre.cx@gmail.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).