From: Vladimir Prus <vladimir@codesourcery.com>
To: tromey@redhat.com
Cc: gdb-patches@sources.redhat.com
Subject: Re: =frame-selected MI notification
Date: Tue, 01 Sep 2009 05:35:00 -0000 [thread overview]
Message-ID: <200909010935.25258.vladimir@codesourcery.com> (raw)
In-Reply-To: <m3ljkzy3x8.fsf@fleche.redhat.com>
On Tuesday 01 September 2009 Tom Tromey wrote:
> >>>>> "Volodya" == Vladimir Prus <vladimir@codesourcery.com> writes:
>
> Volodya> Furthermore, I do not think that observers for either thread or
> Volodya> frame changes is good idea, design wise. The fact that gdb has
> Volodya> current thread or current frame at the code level, is, IMNSHO,
> Volodya> a design bug.
>
> I agree, for the core. But, the problem in question concerns
> notification about the changes to the user's view.
>
> E.g., it wouldn't be unreasonable to want to write a Python script that
> reacts to changes in the CLI's notion of frame. In this case, such an
> observer would be useful and appropriate.
Why would you want this? To implement some 'plugin' to CLI interface?
Then, since current_ptid is essentially "CLI current thread", such a
plugin naturally need observer to notice changes of current_ptid.
However, this does not say MI should use the same observer ;-)
- Volodya
next prev parent reply other threads:[~2009-09-01 5:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-27 17:01 Dmitry Dzhus
2009-08-27 20:54 ` Tom Tromey
2009-08-28 6:44 ` Vladimir Prus
2009-08-29 5:40 ` Nick Roberts
2009-08-29 7:53 ` Vladimir Prus
2009-08-31 23:11 ` Tom Tromey
2009-09-01 15:13 ` Dmitry Dzhus
2009-08-31 23:19 ` Tom Tromey
2009-09-01 5:35 ` Vladimir Prus [this message]
2009-09-02 19:35 ` Tom Tromey
2009-09-01 18:54 ` Dmitry Dzhus
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=200909010935.25258.vladimir@codesourcery.com \
--to=vladimir@codesourcery.com \
--cc=gdb-patches@sources.redhat.com \
--cc=tromey@redhat.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