This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC][patch 3/9] export hooks mechanism to Python
- From: Daniel Jacobowitz <drow at false dot org>
- To: Thiago Jung Bauermann <bauerman at br dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 28 May 2008 17:26:12 -0400
- Subject: Re: [RFC][patch 3/9] export hooks mechanism to Python
- References: <20080429155212.444237503@br.ibm.com> <20080429155304.641779989@br.ibm.com>
On Tue, Apr 29, 2008 at 12:52:15PM -0300, Thiago Jung Bauermann wrote:
> 2008-04-29 Tom Tromey <tromey@redhat.com>
>
> * Makefile.in (SUBDIR_PYTHON_OBS): Add python-hooks.o.
> (SUBDIR_PYTHON_SRCS): Add python/hooks.c.
> (python-hooks.o): New target.
> * interps.c (interp_set): Don't call clear_interpreter_hooks.
> [Temporary hack].
> * python/hooks.c: New file.
> * python/python-internal.h (variable_to_python,
> gdbpy_get_hook_function, gdbpy_initialize_hooks): Declare.
> * python/python.c (demand_python): Call gdbpy_initialize_hooks.
I won't look at this one, as I believe Tom's rewritten it to use
observers instead.
--
Daniel Jacobowitz
CodeSourcery