[PATCH v2 01/14] gdb: add inferior_execd observable
Pedro Alves
pedro@palves.net
Fri Dec 4 01:45:56 GMT 2020
On 12/2/20 3:47 PM, Simon Marchi via Gdb-patches wrote:
> From: Simon Marchi <simon.marchi@efficios.com>
>
> I want to add another action (clearing displaced stepping state) that
> happens when an inferior execs. I think it would be cleaner to have an
> observer for this event, rather than have infrun know about each other
> sub-component.
>
> Replace the calls to solib_create_inferior_hook and
> jit_inferior_created_hook in follow_exec by observers.
>
> gdb/ChangeLog:
>
> * observable.h (inferior_execd): Declare new observable.
> * observable.c (inferior_execd): Declare new observable.
> * infrun.c (follow_exec): Notify inferior_execd observer.
> * jit.c (jit_inferior_created_hook): Make static.
> (_initialize_jit): Register inferior_execd observer.
> * jit.h (jit_inferior_created_hook): Remove declaration.
> * solib.c (_initialize_solib): Register inferior_execd observer.
OK.
More information about the Gdb-patches
mailing list