mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
46e9ea0e10
HexDumpPipe dumps content of binary file in the similar way as hexdump tool with addition of PTML markup for instructions addresses. Continuous parts of binary code are wrapped with <span data-location-definition=""></span> where data-location-definition attribute contains Entry/BasicBlock/Instruction addresses in generic form. <span> tags can be nested if byte(s) belong to many instructions in code. At the end of the line every <span> is closed and opened on the next line again if it still applies to the next byte. MetaAddress are converted to IntervalMetaAddress (which implements own, optional-less operator-) and stored in boost::icl::intruval_map. This map is used to get addresses of instructions to which each byte belongs.