Author: Armin Rigo <[email protected]>
Branch:
Changeset: r76860:e30bd43e438c
Date: 2015-04-21 19:24 +0200
http://bitbucket.org/pypy/pypy/changeset/e30bd43e438c/
Log: Detect objects with h_tid==-42
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
@@ -99,6 +99,8 @@
obj = obj.dereference()
hdr = lookup(obj, '_gcheader')
tid = hdr['h_tid']
+ if tid == -42: # forwarded?
+ return 'Forwarded'
if sys.maxsize < 2**32:
offset = tid & 0xFFFF # 32bit
else:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit