From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8786 invoked by alias); 10 Feb 2006 00:15:05 -0000 Received: (qmail 8774 invoked by uid 22791); 10 Feb 2006 00:15:04 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 10 Feb 2006 00:15:01 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id k1A0Es27029025 for ; Thu, 9 Feb 2006 19:14:59 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id k1A0Es110425; Thu, 9 Feb 2006 19:14:54 -0500 Received: from livre.oliva.athome.lsd.ic.unicamp.br (vpn50-42.rdu.redhat.com [172.16.50.42]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id k1A0EqOb008813; Thu, 9 Feb 2006 19:14:53 -0500 Received: from livre.oliva.athome.lsd.ic.unicamp.br (livre.oliva.athome.lsd.ic.unicamp.br [127.0.0.1]) by livre.oliva.athome.lsd.ic.unicamp.br (8.13.5/8.13.5) with ESMTP id k1A0Ep8N020064; Thu, 9 Feb 2006 22:14:51 -0200 Received: (from aoliva@localhost) by livre.oliva.athome.lsd.ic.unicamp.br (8.13.5/8.13.5/Submit) id k1A0EmJ2020063; Thu, 9 Feb 2006 22:14:48 -0200 To: Eli Zaretskii Cc: gdb-patches@sources.redhat.com, cagney@redhat.com Subject: Re: cope with varying prelink base addresses References: From: Alexandre Oliva Date: Fri, 10 Feb 2006 00:15:00 -0000 In-Reply-To: (Eli Zaretskii's message of "Wed, 08 Feb 2006 08:25:02 +0200") Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.18 (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-02/txt/msg00229.txt.bz2 On Feb 8, 2006, Eli Zaretskii wrote: > Would it make sense to add a user command/variable that will tell GDB > the difference between the two base addresses? Err... Not really. Unless you mean some per-dynamic-object setting. And I really think it's overkill. Perhaps it migth make sense to ask the user what to do whenever we detect an inconsistency between the expected address of l_ld and the address it is on, offering a reasonable default, but even that is probably overkill, and it might change the behavior if l_ld doesn't mean what we think it does. Besides, we already sort-of have the means to do it. GDB has commands to set the addresses of individual sections. It would be a pain, but it can be done. -- Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/ Secretary for FSF Latin America http://www.fsfla.org/ Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org} Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}