[pypy-svn] r72945 - pypy/trunk/pypy/jit/backend/x86/tool
arigo at codespeak.net
arigo at codespeak.net
Sat Mar 27 12:47:02 CET 2010
Author: arigo
Date: Sat Mar 27 12:47:00 2010
New Revision: 72945
Modified:
pypy/trunk/pypy/jit/backend/x86/tool/viewcode.py
Log:
Use "-M intel". Thanks for jcreigh for pointing this out.
Modified: pypy/trunk/pypy/jit/backend/x86/tool/viewcode.py
==============================================================================
--- pypy/trunk/pypy/jit/backend/x86/tool/viewcode.py (original)
+++ pypy/trunk/pypy/jit/backend/x86/tool/viewcode.py Sat Mar 27 12:47:00 2010
@@ -34,7 +34,8 @@
def machine_code_dump(data, originaddr):
# the disassembler to use. 'objdump' writes GNU-style instructions.
# 'ndisasm' would use Intel syntax, but you need to fix the output parsing.
- objdump = 'objdump -b binary -m i386 --adjust-vma=%(origin)d -D %(file)s'
+ objdump = ('objdump -M intel -b binary -m i386 '
+ '--adjust-vma=%(origin)d -D %(file)s')
#
f = open(tmpfile, 'wb')
f.write(data)
More information about the Pypy-commit
mailing list