From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2359 invoked by alias); 22 Sep 2003 22:07:13 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 2349 invoked from network); 22 Sep 2003 22:07:12 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 22 Sep 2003 22:07:12 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h8MM7B127292 for ; Mon, 22 Sep 2003 18:07:11 -0400 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 h8MM7Ac14598 for ; Mon, 22 Sep 2003 18:07:10 -0400 Received: from localhost.localdomain (vpn50-12.rdu.redhat.com [172.16.50.12]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h8MM79VG002816; Mon, 22 Sep 2003 18:07:09 -0400 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id h8MM74V29783; Mon, 22 Sep 2003 15:07:04 -0700 Date: Mon, 22 Sep 2003 22:07:00 -0000 From: Kevin Buettner Message-Id: <1030922220703.ZM29782@localhost.localdomain> In-Reply-To: Andrew Cagney "[rfa/ppc64] Only map descriptors to code addresses" (Sep 19, 2:51pm) References: <3F6B5031.7060102@redhat.com> To: Andrew Cagney , gdb-patches@sources.redhat.com Subject: Re: [rfa/ppc64] Only map descriptors to code addresses MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-09/txt/msg00484.txt.bz2 On Sep 19, 2:51pm, Andrew Cagney wrote: > This patch modifies ppc64's convert_from_func_ptr_addr so that it only > converts a descriptor to the code address when it's sure it's got a > descriptor. This way, of the function gets fed a random address, it > doesn't map it onto something even more random - I encountered this when > trying to debug "break main" with only a minimal symbol table. > > This also makes the behavior consistent with the ia64. > > ok? > Andrew > > 2003-09-19 Andrew Cagney > > * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only > convert a descriptor to a function when it's in the ".opd" > section. This sounds reasonable. Okay. Kevin