[pypy-commit] pypy jitframe-on-heap: fix for viewcode's machine detection
bivab
noreply at buildbot.pypy.org
Tue Feb 19 11:53:31 CET 2013
Author: David Schneider <david.schneider at picle.org>
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' %
More information about the pypy-commit
mailing list