For support DW_FORM_addrx3 and DW_FORM_strx3 it would be easier/clearer imho to use #if defined(VG_BIGENDIAN) instead of doing a runtime trick.
Is the big endian variant correct?
return c1 << 16 | c2 << 8 | c3;
Should that be:
return c1 << 32 | c2 << 16 | c3 << 8;
For support DW_FORM_addrx3 and DW_FORM_strx3 it would be easier/clearer imho to use #if defined( VG_BIGENDIAN) instead of doing a runtime trick.
Is the big endian variant correct?
return c1 << 16 | c2 << 8 | c3;
Should that be:
return c1 << 32 | c2 << 16 | c3 << 8;