From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 880 invoked by alias); 12 Mar 2007 11:07:34 -0000 Received: (qmail 863 invoked by uid 22791); 12 Mar 2007 11:07:33 -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; Mon, 12 Mar 2007 11:07:24 +0000 Received: from dsl093-172-095.pit1.dsl.speakeasy.net ([66.93.172.95] helo=caradoc.them.org) by nevyn.them.org with esmtp (Exim 4.63) (envelope-from ) id 1HQiN5-0000he-Cm; Mon, 12 Mar 2007 07:07:19 -0400 Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HQiN4-0005dw-U9; Mon, 12 Mar 2007 07:07:18 -0400 Date: Mon, 12 Mar 2007 11:07:00 -0000 From: Daniel Jacobowitz To: Joel Brobecker Cc: gdb@sourceware.org Subject: Re: [sparc-solaris] unexpected warning when starting program Message-ID: <20070312110718.GB21646@caradoc.them.org> Mail-Followup-To: Joel Brobecker , gdb@sourceware.org References: <20070312051646.GI14401@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070312051646.GI14401@adacore.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00165.txt.bz2 On Sun, Mar 11, 2007 at 10:16:46PM -0700, Joel Brobecker wrote: > Basically, the reason for the warning is that GDB thinks that the > inferior unloaded ld.so.1. The reason for that is that, during startup, > GDB does not immediately have access to base address of the dynamic > linker structs. I suspect that this is because our real inferior > hasn't been forked yet, or maybe is in the process of being forked. > I haven't had time to look further into this. It's because you've forked, but the dynamic linker has not run yet. This is code I added recently. The first time, we get the name of the dynamic linker from the contents of .interp. Later, after it's run, we get it from the inferior's link_map list. Maybe a gdbarch hook to override the name of the default dynamic linker? That's really bizarre though. Maybe the OpenSolaris sources give some insight to how it came up with /lib/ld.so.1. -- Daniel Jacobowitz CodeSourcery