Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: Daniel Jacobowitz <drow@false.org>, gdb-patches@sources.redhat.com
Subject: Re: [PATCH] Another annotation for threads
Date: Fri, 06 Jun 2008 01:06:00 -0000	[thread overview]
Message-ID: <m3iqwnbcdz.fsf@fleche.redhat.com> (raw)
In-Reply-To: <18504.35208.397231.7949@kahikatea.snap.net.nz> (Nick Roberts's message of "Fri\, 6 Jun 2008 12\:49\:12 +1200")

>>>>> "Nick" == Nick Roberts <nickrob@snap.net.nz> writes:

Nick> But that's exactly what did happen.  Shortly after I submitted a
Nick> patch for the "new-thread" annotation which used the new_thread
Nick> observer, the observer was moved to report the main thread.
Nick> It's pragmatic argument rather than technical one.  I have no
Nick> control over MI development and Vladimir has stated on several
Nick> occasions that MI considerations are paramount.

I'm curious about the long-term view in this area.  I'm perhaps not as
familiar with gdb history as I ought to be to enter this discussion...

It seems to me that the Python work will want notification of all the
same kinds of things that Emacs would, that MI would, and that Insight
would -- regardless of how something happens (an independent event in
the inferior, code run from Python, or user activity on the CLI),
folks will want to be able to write Python that reacts to these
somethings.

Abstractly I would have expected that the gdb core would use observer
notification, and the various state-change consumers (MI, annotations,
Python, etc) would simply register observers as needed.  (At least,
this is what I expected once I found out that events are deprecated.
I already had to add a couple of observers for Python, so this isn't
totally theoretical for me.)

Is this how things "ought" to work?  I mean ideally?
If not, would someone mind summarizing how it really should work?

Tom


  reply	other threads:[~2008-06-06  1:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-21  6:13 Nick Roberts
2008-05-21  8:54 ` Eli Zaretskii
2008-06-05 19:30 ` Daniel Jacobowitz
2008-06-05 21:20   ` Nick Roberts
2008-06-05 21:26     ` Daniel Jacobowitz
2008-06-05 22:02       ` Joel Brobecker
2008-06-06  1:03         ` Nick Roberts
2008-06-06  6:59           ` Joel Brobecker
2008-06-06  0:50       ` Nick Roberts
2008-06-06  1:06         ` Tom Tromey [this message]
2008-06-06  2:30           ` Daniel Jacobowitz
2008-06-06  2:44             ` Tom Tromey
2008-06-06  2:39         ` Pedro Alves
2008-06-06  3:00           ` Nick Roberts
2008-06-06 11:44             ` Daniel Jacobowitz

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=m3iqwnbcdz.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=drow@false.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=nickrob@snap.net.nz \
    /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