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?


On Tue, Oct 17, 2006 at 08:20:21PM -0400, Joel Brobecker wrote:
> Is this then one instance you were mentioning (remote.c)?
> 
>   /* Call predecessor on chain, if any.  */
>   if (remote_new_objfile_chain != 0 &&
>       remote_desc == 0)
>     remote_new_objfile_chain (objfile);
> 
> I'm trying to understand how this is supposed to work, since
> my understanding is that the order in which _init routines are
> called is not guarantied. So the above breaks the chain, but we
> just don't know where...

Luck works it out - they're sorted by function name, IIRC, and it's
still called _initialize_thread_db ().

-- 
Daniel Jacobowitz
CodeSourcery


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