Message103440
In GDB 7.1, a gdb.frame object has no more function method: it's replaced by a name method. Tools/gdb/libpython.py should be modified:
Add >>GDB_70 = gdb.VERSION.startswith("7.0")<< at the beginning, and replace is_evalframeex() by:
def is_evalframeex(self):
'''Is this a PyEval_EvalFrameEx frame?'''
if GDB_70:
func = self._gdbframe.function()
if not func:
return False
func_name = func.name
else:
func_name = self._gdbframe.name()
if func_name != 'PyEval_EvalFrameEx':
return False
# I believe we also need to filter on the inline
# struct frame_id.inline_depth, only regarding frames with
# an inline depth of 0 as actually being this function
#
# So we reject those with type gdb.INLINE_FRAME
return (self._gdbframe.type() == gdb.NORMAL_FRAME) |
|
Date |
User |
Action |
Args |
2010-04-17 22:34:13 | vstinner | set | recipients:
+ vstinner, loewis, ncoghlan, dmalcolm |
2010-04-17 22:34:13 | vstinner | set | messageid: <1271543653.66.0.483425076927.issue8279@psf.upfronthosting.co.za> |
2010-04-17 22:34:12 | vstinner | link | issue8279 messages |
2010-04-17 22:34:11 | vstinner | create | |
|