>>>>> "Ulrich" == Ulrich Weigand via Gcc <gcc@gcc.gnu.org> writes:

Ulrich> If we do want to byte-swap pointer types, then I guess we need
Ulrich> to still fix the debug info problem, which I guess would at a
Ulrich> minimum require extending DWARF to allow DW_AT_endianity as an
Ulrich> attribute to DW_TAG_pointer_type (and then probably also
Ulrich> DW_TAG_reference_type, DW_TAG_rvalue_reference_type,
Ulrich> DW_TAG_ptr_to_member_type and possibly others).  Also, the
Ulrich> implementation in GDB would need to be changed accordingly.

Ulrich> Any comments or suggestions on what to do here?

This kind of extension is pretty normal in DWARF, so I think it isn't a
big deal to emit it.  Consumers are ordinarily expected to simply ignore
things they don't understand.

Tom

Reply via email to