This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC/ia64-linux] pb with shared libraries when attaching to process
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 6 May 2008 13:03:38 -0700
- Subject: Re: [RFC/ia64-linux] pb with shared libraries when attaching to process
- References: <20080425012331.GP1431@adacore.com> <20080425014746.GA10244@caradoc.them.org> <20080425023623.GB16580@adacore.com> <20080425032341.GA15147@caradoc.them.org> <20080425175952.GA841@adacore.com> <20080502144053.GJ29202@caradoc.them.org>
> 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