[pypy-commit] pypy stmgc-c4: Print assembler including the address of the current instruction

arigo noreply at buildbot.pypy.org
Mon Aug 12 19:25:05 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: stmgc-c4
Changeset: r66093:c6e59f8abe95
Date: 2013-08-12 17:35 +0200
http://bitbucket.org/pypy/pypy/changeset/c6e59f8abe95/

Log:	Print assembler including the address of the current instruction and
	the raw bytes; I think there is little point in hiding information
	here, and it lets us see that some jumps have a bogus destination
	address (unpatched) (transplanted from
	2d0eaeda9275f908f52a75973b1b63c6fa9baa80)

diff --git a/pypy/tool/jitlogparser/parser.py b/pypy/tool/jitlogparser/parser.py
--- a/pypy/tool/jitlogparser/parser.py
+++ b/pypy/tool/jitlogparser/parser.py
@@ -87,7 +87,7 @@
                     continue
                 e = elem.split("\t")
                 adr = e[0]
-                v = " ".join(e[2:])
+                v = elem   # --- more compactly:  " ".join(e[2:])
                 if not start:
                     start = int(adr.strip(":"), 16)
                 ofs = int(adr.strip(":"), 16) - start


More information about the pypy-commit mailing list