This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfa/ppc64] Only map descriptors to code addresses


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]