From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8991 invoked by alias); 17 Sep 2007 19:42:24 -0000 Received: (qmail 8981 invoked by uid 22791); 17 Sep 2007 19:42:24 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 17 Sep 2007 19:42:18 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 79E1A2AB175 for ; Mon, 17 Sep 2007 15:42:16 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id dr2cwIT+pkEf for ; Mon, 17 Sep 2007 15:42:16 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 45AED2AB172 for ; Mon, 17 Sep 2007 15:42:16 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id DF56DE7B58; Mon, 17 Sep 2007 12:42:13 -0700 (PDT) Date: Mon, 17 Sep 2007 19:42:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: Re: [RFA/solib-svr4] use AT_BASE auxiliary entry to compute load base address Message-ID: <20070917194213.GA3882@adacore.com> References: <20070912211805.GF10540@adacore.com> <20070916193558.GA27177@caradoc.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070916193558.GA27177@caradoc.them.org> User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-09/txt/msg00233.txt.bz2 > and did not find any loaded libraries or else did not find the > interpreter in the list. That's strange and almost certainly > indicates a bug that we should fix. The loader should have > been in the list at that point. Maybe it has a different > filename in the list than in .interp? Hmmm, that does ring a bell. I think we discussed another symptom of the same problem: (gdb) start Breakpoint 1 at 0x2d100: file a_test.adb, line 4. Starting program: /[...]/a_test warning: Temporarily disabling breakpoints for unloaded shared library "/usr/lib/ld.so.1" (that was on gdb@ around Mar, 11th 2007) > > I think that the problem is that we're computing the wrong base load > > address in solib-svr4.c. As it turned out, there was a "TODO" hint > > added by Daniel that suggested using the AT_BASE auxiliary entry. > > The attached patch attempts to do that. > > > > 2007-09-12 Joel Brobecker > > > > * solib-svr4.c: Add include of "auxv.h". > > (enable_break): Use the AT_BASE auxiliary entry if available. > > * Makefile.in (solib-svr4.o): Update dependencies. > > This patch, independently, is a good idea and I'm glad you did it. > It's OK. Thanks. Checked in. -- Joel