From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21758 invoked by alias); 18 Oct 2006 01:38:57 -0000 Received: (qmail 21747 invoked by uid 22791); 18 Oct 2006 01:38:56 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 18 Oct 2006 01:38:54 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Ga0OS-0005iG-B1; Tue, 17 Oct 2006 21:38:52 -0400 Date: Wed, 18 Oct 2006 01:38:00 -0000 From: Daniel Jacobowitz To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] Replace deprecated_target_new_objfile_hook by observer? Message-ID: <20061018013852.GA21939@nevyn.them.org> Mail-Followup-To: Joel Brobecker , gdb-patches@sources.redhat.com References: <20061017233217.GS1903@adacore.com> <20061017233524.GA18064@nevyn.them.org> <20061018002021.GA1338@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061018002021.GA1338@adacore.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00210.txt.bz2 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