Author: David Schneider <[email protected]>
Branch: jitframe-on-heap
Changeset: r61456:cdcbff0cbfc0
Date: 2013-02-19 11:51 +0100
http://bitbucket.org/pypy/pypy/changeset/cdcbff0cbfc0/

Log:    fix for viewcode's machine detection

diff --git a/rpython/jit/backend/tool/viewcode.py 
b/rpython/jit/backend/tool/viewcode.py
--- a/rpython/jit/backend/tool/viewcode.py
+++ b/rpython/jit/backend/tool/viewcode.py
@@ -69,7 +69,7 @@
         'file': tmpfile,
         'origin': originaddr,
         'backend': objdump_backend_option[backend_name],
-        'machine': 'i386' if backend_name != 'arm' else 'arm',
+        'machine': 'i386' if not backend_name.startswith('arm') else 'arm',
     }, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     stdout, stderr = p.communicate()
     assert not p.returncode, ('Encountered an error running objdump: %s' %
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to