This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] PR python/13598 - add before_prompt event
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tom at tromey dot com>
- Cc: Matt Rice <ratmice at gmail dot com>, Yao Qi <qiyaoltc at gmail dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Fri, 5 Aug 2016 18:30:20 +0100
- Subject: Re: [RFA] PR python/13598 - add before_prompt event
- Authentication-results: sourceware.org; auth=none
- References: <1463806850-11001-1-git-send-email-tom@tromey.com> <CAH=s-PN=rQG=nxyB=YUPoDU4mSN6shAUskBUw8UmeJfm2UcLTw@mail.gmail.com> <CACTLOFqA-ZFfik=umzqsKy49bQr_OMzYjj6-m3o_MeqFzmd4Cg@mail.gmail.com> <87r3allziy.fsf@tromey.com> <c25e3f6c-ebc5-3a00-cace-ebef0123df74@redhat.com> <8737mkz325.fsf@tromey.com>
On 08/04/2016 09:34 PM, Tom Tromey wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>
>>> Right now my GUI uses this event to react appropriately when the user
>>> types "up" or "down".
>
> Pedro> The TUI uses this approach too nowadays.
>
> Thanks for mentioning that. I think it's another argument for accepting
> this patch.
I do agree that an event for user-selected frame changes might be nice.
However, I'm fine with the approach in this patch as well, because
I'm sure that even if a frame-change event is added in the future,
a before_prompt event can still find other uses.
Thanks,
Pedro Alves