From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10537 invoked by alias); 20 Mar 2007 08:39:45 -0000 Received: (qmail 10529 invoked by uid 22791); 20 Mar 2007 08:39:44 -0000 X-Spam-Check-By: sourceware.org Received: from lon-del-03.spheriq.net (HELO lon-del-03.spheriq.net) (195.46.50.99) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 Mar 2007 08:39:41 +0000 Received: from lon-out-03.spheriq.net ([195.46.50.131]) by lon-del-03.spheriq.net with ESMTP id l2K8dc6c000835 for ; Tue, 20 Mar 2007 08:39:38 GMT Received: from lon-cus-01.spheriq.net (lon-cus-01.spheriq.net [195.46.50.37]) by lon-out-03.spheriq.net with ESMTP id l2K8dcSA008974 for ; Tue, 20 Mar 2007 08:39:38 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by lon-cus-01.spheriq.net with ESMTP id l2K8dW72006960 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Tue, 20 Mar 2007 08:39:36 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D3715DA46 for ; Tue, 20 Mar 2007 08:39:32 +0000 (GMT) Received: from mail1.cro.st.com (mail1.cro.st.com [164.129.40.131]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 92621472FD for ; Tue, 20 Mar 2007 08:39:32 +0000 (GMT) Received: from [164.129.44.95] (crx595.cro.st.com [164.129.44.95]) by mail1.cro.st.com (MOS 3.7.5a-GA) with ESMTP id CKA21112 (AUTH "denis pilat"); Tue, 20 Mar 2007 09:39:31 +0100 (CET) Message-ID: <45FF9DC3.20802@st.com> Date: Tue, 20 Mar 2007 08:39:00 -0000 From: Denis PILAT User-Agent: Thunderbird 1.5.0.10 (X11/20070221) MIME-Version: 1.0 To: gdb@sourceware.org Subject: Re: Re: [sparc-solaris] unexpected warning when starting program References: <20070312051646.GI14401@adacore.com> <20070312110718.GB21646@caradoc.them.org> In-Reply-To: <20070312110718.GB21646@caradoc.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00226.txt.bz2 Daniel Jacobowitz wrote: > 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. > > This "unexpected warning" is also the one that causes the TUI to crash under Solaris. See the thread "TUI + gdbserver broken?" at url : (http://sources.redhat.com/ml/gdb-patches/2007-03/msg00169.html) Removing that warning (I've tried that as well) will remove that problem too, but it's only a side effect. I think we should fix both separately but when you'll have removed think warning, the TUI bug will become invisible. -- Denis