Re: A hack for DW_FORM_ref_addr

H. J. Lu
2003-07-31T18:29:34Z

On Thu, Jul 31, 2003 at 02:22:19PM -0400, Daniel Jacobowitz wrote:
> On Thu, Jul 31, 2003 at 09:16:19AM -0700, H. J. Lu wrote:
> > On Wed, Jul 30, 2003 at 10:16:53PM -0700, H. J. Lu wrote:
> > > > >
> > > > > While waiting for your new DWARF reader, I will see how my hack
> > > > > goes :-(.
> > > >
> > > > Since the die table is hashed by offset (isn't it?), presumably very
> > > > badly.
> > >
> > > It is OK for different compilation units within the same .debug_info
> > > section.
> > >
> > >
> >
> > FYI, this is the hack I am going to try.
>
> It may be safe, but it's unacceptable. Take a look at the memory usage
> requirements for -readnow, if libc.so.6 has debugging information.
> You've just eaten probably 200MB of RAM.
>

Since DW_FORM_ref_addr requires it, I don't see there is an easy way
out. I guess I could only save those used by DW_FORM_ref_addr.

H.J.