From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23024 invoked by alias); 3 Oct 2003 20:49:29 -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 22986 invoked from network); 3 Oct 2003 20:49:27 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 3 Oct 2003 20:49:27 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 76C522B89; Fri, 3 Oct 2003 16:49:27 -0400 (EDT) Message-ID: <3F7DE0D7.5040506@redhat.com> Date: Fri, 03 Oct 2003 20:49:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kevin Buettner Cc: gdb-patches@sources.redhat.com Subject: Re: [rfa/ppc64] Only map descriptors to code addresses References: <3F6B5031.7060102@redhat.com> <1030922220703.ZM29782@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00056.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. I've checked this in. Andrew