[PATCH] DWARF-2 .debug_line reader
Casey Marshall
csm@gnu.org
Tue Jul 27 23:58:00 GMT 2004
>>>>> "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.
I haven't tried addr2line, but gdb gives the correct line. I think
this is probably just due to a wrong address comparison (>= vs. >).
I should probably ask this, too, since I can't find an answer
anywhere: does DWARF-2 specify an endianness for multibyte integers,
or does it use the platform's endian? If it is the former, then this
patch won't work on big-endian machines.
--
Casey Marshall || csm@gnu.org
More information about the Java-patches
mailing list