[RFC/ia64-linux] pb with shared libraries when attaching to process

Joel Brobecker brobecker@adacore.com
Wed May 7 10:12:00 GMT 2008


> On Fri, Apr 25, 2008 at 10:59:52AM -0700, Joel Brobecker wrote:
> > Eric Botcazou suggested that an address pointing to the .data section
> > should never be some code because the .data section is not executable;
> > So we could simply check the flags of our section, and if it doesn't
> > have the CODE flag set, then assume it's a function descriptor.
> 
> I can imagine this breaking but it would require use of mprotect.
> Your patch looks good to me.

Thanks. I just checked the patch in.

-- 
Joel



More information about the Gdb-patches mailing list