[PATCH] DWARF-2 .debug_line reader

Casey Marshall csm@gnu.org
Fri Jul 30 05:12:00 GMT 2004


>>>>> "Casey" == Casey Marshall <csm@gnu.org> writes:

>>>>> "Bryce" == Bryce McKinlay <mckinlay@redhat.com> writes:
Bryce> Casey Marshall wrote:

>>> 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.
>>> 
Bryce> Does addr2line give the correct line in this case? I've noticed
Bryce> off-by-one line numbers in some cases, this might be a case of
Bryce> gcj putting the wrong numbers in the debug info.

Casey> I haven't tried addr2line, but gdb gives the correct line. I
Casey> think this is probably just due to a wrong address comparison
Casey> (>= vs. >).

I've fixed this. It was just my not fully understanding what
"appending a row to the matrix" meant exactly.

Revised version of natDwarf2NameFinder.java attached.

-- 
Casey Marshall || csm@gnu.org
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: natDwarf2NameFinder.cc
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040730/01212233/attachment.cc>


More information about the Java-patches mailing list