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: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 2 May 2008 10:40:53 -0400
- 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>
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.
--
Daniel Jacobowitz
CodeSourcery