[llvm-commits] [patch][MC] Change the way we dump section_data

Rafael Espindola espindola at google.com
Fri Sep 10 11:38:42 PDT 2010


While working on the LEB128 patch I found the output of elf-dump and
macho-dump for section_data hard to read. The problem is that "%r"
works best for mostly ascii data. Since that is normally the case, we
get things like "\xc88\xf4". Note that the second '8' is the ascii
char '8'. With this patch we get "c838f4" with a space every 4 bytes.
IMHO it makes the output a lot easier to decode.

Cheers,
-- 
Rafael Ávila de Espíndola
-------------- next part --------------
A non-text attachment was scrubbed...
Name: section_data.patch
Type: text/x-patch
Size: 23504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100910/ea978f2e/attachment.bin>


More information about the llvm-commits mailing list