[PATCH 24700]

Thiago Jung Bauermann bauerman@br.ibm.com
Thu Mar 1 21:56:00 GMT 2007


Hi,

I'm working with Flávio on this issue...

On Thu, 2007-03-01 at 15:40 -0500, Daniel Jacobowitz wrote:
> On Thu, Mar 01, 2007 at 05:05:36PM -0400, Jose Flavio Aguilar Paulino wrote:
> > The problem was that 'ppc64_linux_convert_from_func_ptr_addr()' first wanted to
> > make sure that the function pointer for 'malloc()' pointed into an .opd section
> > before it was 'dereferenced'  It used 'target_section_by_addr()' to do the
> > search, and the section containing the PLT pointed to by the function pointer
> > was not in the section table being searched.  But there is another section
> > table.
> 
> Actually, there's a ton of section tables - this is an organizational
> problem in GDB.  Originally they all meant different things.
> 
> Does using find_pc_section instead work in all cases?

In the testcase mentioned here, GDB wants to allocate memory in the
inferior so that it can set the string's value. It's GDB that's calling
malloc and not the inferior, so the inferior's PC is not anywhere near
malloc (unless we're lucky), as far as I know...
-- 
[]'s
Thiago Jung Bauermann
Software Engineer
IBM Linux Technology Center



More information about the Gdb-patches mailing list