This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]