This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Replace deprecated_target_new_objfile_hook by observer
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: drow at false dot org (Daniel Jacobowitz)
- Cc: gdb-patches at sourceware dot org, eliz at gnu dot org
- Date: Tue, 8 May 2007 00:30:24 +0200 (CEST)
- Subject: Re: [rfc] Replace deprecated_target_new_objfile_hook by observer
Daniel Jacobowitz:
> On Mon, May 07, 2007 at 11:16:58PM +0200, Ulrich Weigand wrote:
> > Hello,
> >
> > this patch removes the deprecated_target_new_objfile_hook and replaces
> > it by a new observer "new_objfile". The semantics remains completely
> > unchanged, so the patch is mostly just mechanical changes.
>
> Do we really need it? We've already got executable_changed and
> solib_loaded and solib_unloaded.
Hmm, it was quite useful when implementing SPU overlay support
(see the patch set I just sent out). I'm using it to attach
a target-specific overlay table data structure to each objfile
as it is read in.
There didn't seem to be any other callback that was just right
for this (e.g. executable_changed is called already before the
symfile_objfile is instantiated) ...
Any suggestions how to solve this differently?
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com