public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "palves at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug python/12967] event.inferior_thread does not exist in all-stop/sync mode
Date: Tue, 31 Jan 2012 17:15:00 -0000	[thread overview]
Message-ID: <bug-12967-4717-NH2VVk85Rs@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-12967-4717@http.sourceware.org/bugzilla/>

http://sourceware.org/bugzilla/show_bug.cgi?id=12967

--- Comment #5 from Pedro Alves <palves at redhat dot com> 2012-01-31 17:14:41 UTC ---
> right now I assume that the event handler is supposed to know that the current thread is the stopping thread (if that is even true).

If that's true, it doesn't seem to be documented.  The handler could also know
that is true for non-stop.  This makes it unnecessary and redundant to have
event.inferior_thread in the first place.

If we fixed event.inferior_thread, scripts that are working around this by
looking at the current thread will still work.

> /* thread events can either be thread specific or process wide.  If gdb is
>    running in non-stop mode then the event is thread specific, otherwise
>    it is process wide.

This is really bogus.  A process wide event is something like a process exit,
and is really orthogonal to all-stop/non-stop/itsets.  :-(

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


      parent reply	other threads:[~2012-01-31 17:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-06 19:34 [Bug python/12967] New: " jan.kratochvil at redhat dot com
2011-07-06 19:40 ` [Bug python/12967] " jan.kratochvil at redhat dot com
2012-01-03 22:03 ` tromey at redhat dot com
2012-01-30 18:24 ` palves at redhat dot com
2012-01-31 16:37 ` tromey at redhat dot com
2012-01-31 17:15 ` palves at redhat dot com [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=bug-12967-4717-NH2VVk85Rs@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@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).