Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Even after that we will have differences, as shadow is printed in hex format(i.e. each nibble)
so "12" will be printed as "21", "78" as "87" etc.
And it is because we are reversing it on the basis of endianness in DescribeMemoryRange()
Ah, right. LGTM.
Btw, is that consistent with how other tools print memory on big endian platforms? Like gdb and objdump. If not, this can be changed.
No, in gdb, endians are differentiated from byte level, so nibbles are not reversed while displaying.
Hm, r210335 looks weird. So, the way you suggest is to print the hex digits of each byte in the most significant first order, and print different bytes in the memory order. Sounds reasonable, let's do it.
I have removed endian based conditions for shadow printing in D17563.
This revision uses a char array to make this test compatible for both endians.