[PATCH] DWARF-2 .debug_line reader
Bryce McKinlay
mckinlay@redhat.com
Tue Jul 27 23:05:00 GMT 2004
Casey Marshall wrote:
>This is a follow-up to my previous post about reading the ELF
>.debug_line section in GCJ-compiled libraries to determine the file
>name and line number of debug stack frames. It improves the
>performance greatly, by mapping any needed .debug_line sections into
>memory, and cacheing ranges of PC addresses to a compilation unit
>inside a debug section. I have also rewritten the bits I got from
>elsewhere.
>
>
Cool - thanks. I'm working on integrating this with my stack trace
stuff, and I'll post a merged patch when its done.
>The look-up appears to be correct, for the most part. For some reason,
>the line numbers I get for FirstThread are incorrect, but I don't know
>why yet.
>
>
Does addr2line give the correct line in this case? I've noticed
off-by-one line numbers in some cases, this might be a case of gcj
putting the wrong numbers in the debug info.
Regards
Bryce
More information about the Java-patches
mailing list