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: Phil Muldoon <pmuldoon at redhat dot com>
- To: Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Fri, 22 Jul 2016 10:34:22 +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>
On 21/05/16 06:00, Tom Tromey wrote:
> This adds an event that is emitted just before GDB presents a prompt
> to the user. This provides Python code a way to react to whatever
> changes might have been made by the previous command. For example, in
> my GUI I use this to track changes to the selected frame and reflect
> them in the UI.
>
> Built and regtested on x86-64 Fedora 23.
>
> 2016-05-20 Tom Tromey <tom@tromey.com>
>
> PR python/13598:
> * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
> event.
> * python/py-evts.c (gdbpy_initialize_py_events): Add
> before_prompt registry.
> * python/py-events.h (events_object) <before_prompt>: New field.
>
> 2016-05-20 Tom Tromey <tom@tromey.com>
>
> PR python/13598:
> * python.texi (Events In Python): Document events.before_prompt.
>
> 2016-05-20 Tom Tromey <tom@tromey.com>
>
> PR python/13598:
> * gdb.python/py-events.exp: Add before_prompt event tests.
Looks good to me. Apologies for the delay in responding.
Note, I'm not a maintainer, so please wait for their approval. Or
approve it yourself (I think you are still a maintainer!)
Cheers
Phil