This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Use mmap for symbol tables
On Mon, Jan 30, 2006 at 07:31:06PM -0800, Eirik Fuller wrote:
> > One important note: you bypassed symfile_relocate_debug_section.
>
> I'll look at it. It hasn't yet been an issue in anything I've used my
> gdb mmap patches with, but offhand I'd expect it should be easy to find
> something that does trip over that. I can watch attempts to write back
> to the readonly mmap region from gdb, and maybe cobble together some
> malloc glue which provides the illusion of copy on write. Or maybe just
> convince myself that MAP_PRIVATE is the right answer (but it might be
> better to keep PROT_READ, just to really keep track of what gdb needs to
> modify and what it doesn't need to modify).
No, probably you should just bypass the mmap if the code in that
function triggers.
--
Daniel Jacobowitz
CodeSourcery