Author: Armin Rigo <[email protected]>
Branch:
Changeset: r67412:17bccf6fbfbb
Date: 2013-10-16 13:26 +0200
http://bitbucket.org/pypy/pypy/changeset/17bccf6fbfbb/
Log: Meh
diff --git a/pypy/tool/gdb_pypy.py b/pypy/tool/gdb_pypy.py
--- a/pypy/tool/gdb_pypy.py
+++ b/pypy/tool/gdb_pypy.py
@@ -208,11 +208,16 @@
items = chars['items']
res = []
for i in range(min(length, MAX_DISPLAY_LENGTH)):
+ c = items[i]
try:
- res.append(chr(items[i]))
+ res.append(chr(c))
except ValueError:
# it's a gdb.Value so it has "121 'y'" as repr
- res.append(chr(int(str(items[0]).split(" ")[0])))
+ try:
+ res.append(chr(int(str(c).split(" ")[0])))
+ except ValueError:
+ # meh?
+ res.append(repr(c))
if length > MAX_DISPLAY_LENGTH:
res.append('...')
string = ''.join(res)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit