This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa/ppc64] Only map descriptors to code addresses
- From: Kevin Buettner <kevinb at redhat dot com>
- To: Andrew Cagney <ac131313 at redhat dot com>, gdb-patches at sources dot redhat dot com
- Date: Mon, 22 Sep 2003 15:07:04 -0700
- Subject: Re: [rfa/ppc64] Only map descriptors to code addresses
- References: <3F6B5031.7060102@redhat.com>
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 <cagney@redhat.com>
>
> * 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