[PATCH] Use mmap for symbol tables

Andrew STUBBS andrew.stubbs@st.com
Mon Jan 30 11:34:00 GMT 2006


Eirik Fuller wrote:
> My immediate goal is to solicit opinions on whether the basic approach
> is sound.  Comments in gdb/dwarf2read.c indicate the idea is not new.
> I first started using an approach similar to what's in the enclosed
> patch long before I noticed those comments; those comments finally
> motivated me to dust this off.

I don't know much about mmap, so I'm not going to comment on the 
specific implementation, but I do know it isn't available on all systems 
GDB supports. E.g. Windows.

You'll need to put in a configure test and/or use conditional 
compilation for this stuff.

You probably knew this already, but I thought I would mention it anyway.

Andrew Stubbs



More information about the Gdb-patches mailing list