Closed xs-exp closed 8 years ago
This is possibly because the base is not supplied to the dump formatting instruction in xed.i:156
void get_mnemonic_intel(char** buffer) {
*buffer = (char*) malloc(64);
xed_decoded_inst_dump_intel_format($self, *buffer, 64, 0);
}
dump_intel_format needs to have a base provided https://software.intel.com/sites/landingpage/pintool/docs/65163/Xed/html/group__DEC.html#g28765b6bff0f31f06e3cc9231649d14e:
runtime_address the address of the instruction being disassembled. If zero, the offset is printed for relative branches. If nonzero, XED attempts to print the target address for relative branches.
Related to #16?
Possibly related to #23 .
Example for 2: objdump (correct):
chopper3 (correct):
get_inst_lists (INCORRECT):