From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6190 invoked by alias); 2 Jun 2009 17:04:54 -0000 Received: (qmail 6081 invoked by uid 22791); 2 Jun 2009 17:04:53 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 02 Jun 2009 17:04:47 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id AF9CF290056; Tue, 2 Jun 2009 19:04:44 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xXJCDziqVIcl; Tue, 2 Jun 2009 19:04:15 +0200 (CEST) Received: from province.act-europe.fr (province.act-europe.fr [10.10.0.214]) by mel.act-europe.fr (Postfix) with ESMTP id 06FF829000E; Tue, 2 Jun 2009 19:04:15 +0200 (CEST) Received: by province.act-europe.fr (Postfix, from userid 560) id EC939166378; Tue, 2 Jun 2009 19:04:14 +0200 (CEST) Date: Tue, 02 Jun 2009 17:04:00 -0000 From: Jerome Guitton To: Paul Pluzhnikov Cc: gdb@sourceware.org Subject: Re: add-symbol-file/load and scripts Message-ID: <20090602170414.GL3029@adacore.com> References: <20090602162718.GA21116@adacore.com> <8ac60eac0906020947w4c413b39t3fb38bd04eeb0c41@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8ac60eac0906020947w4c413b39t3fb38bd04eeb0c41@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) 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: 2009-06/txt/msg00010.txt.bz2 Paul Pluzhnikov (ppluzhnikov@google.com): > On Tue, Jun 2, 2009 at 9:27 AM, Jerome Guitton wrote: > > > the text's address, as initialized > > in the symbol file itself, would be the appropriate defaut. > > AFAIU, on any UNIX system it would be appropriate default *only* for ET_EXEC. > For non-prelinked ET_DYN, one needs to add the base load address. Thank you for pointing this out! This definitely rules out the first solution. So, what about the second possibility? (That is to say: when it is possible, setting a convenience variable to the start address after load).