Incorrect disassembly for indirect call using -syntax_intel
From jlari...@gmail.com on September 19, 2010 19:45:38
What version of DynamoRIO are you using? 2.0.0.6 What operating system version are you running on? Windows XP SP3
Steps to reproduce the problem:
Build this code as a standalone app and run with -syntax_intel:
----8<-------8<-------------
#include "dr_api.h"
int main(int argc, char *argv[]) { file_t f; byte *code = "\xff\x15\x3c\x10\x00\x01"; void *drcontext = dr_standalone_init();
f = dr_open_file("c:\out.txt", DR_FILE_WRITE_OVERWRITE); disassemble_with_info(drcontext, code, f, true, true); dr_close_file(f); return 0; }
----8<-------8<-------------
c:\out.txt will contain something like:
0x0040b004 ff 15 3c 10 00 01 call
Note that there is no operand. I'd expect the output to look more like this:
0x0040b004 ff 15 3c 10 00 01 call dword ptr ds:[0x0100013c]
Original issue: http://code.google.com/p/dynamorio/issues/detail?id=344