Dropping a copy of is_evalframeex() from the head of the python trunk
into python2.6-gdb.py fixes this issue.
def is_evalframeex(self):
'''Is this a PyEval_EvalFrameEx frame?'''
if self._gdbframe.name() == 'PyEval_EvalFrameEx':
'''
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
'''
if self._gdbframe.type() == gdb.NORMAL_FRAME:
# We have a PyEval_EvalFrameEx frame:
return True
return False
See also:
http://bugs.python.org/issue8279
http://bugs.python.org/issue8437
** Bug watch added: Python Roundup #8279
http://bugs.python.org/issue8279
** Bug watch added: Python Roundup #8437
http://bugs.python.org/issue8437
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/591023
Title:
AttributeError: 'gdb.Frame' object has no attribute 'function'
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs