This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] DWARF-2 .debug_line reader


>>>>> "Ranjit" == Ranjit Mathew <rmathew@gmail.com> writes:

Ranjit> Casey Marshall wrote:
>> 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.

Ranjit> I might be wrong here because it has been a while, but
Ranjit> doesn't DWARF-2 have it's own "LEB128" encoding format for
Ranjit> representing such stuff which is neither plain little-endian
Ranjit> nor plain big-endian?

Yes, but it also uses fixed-size 2- and 4-byte integers. I think these
types are used exclusively in the .debug_line section (they are
defined in that section only, that I can see). I do know that these
types are little endian on the platforms I've tried this on (x86 and
mipsel), which are both little endian.

-- 
Casey Marshall || csm@gnu.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]