homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients dmalcolm, loewis, ncoghlan, vstinner
Date 2010年04月17日.22:34:11
SpamBayes Score 0.00017129416
Marked as misclassified No
Message-id <1271543653.66.0.483425076927.issue8279@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2010年04月17日 22:34:13vstinnersetrecipients: + vstinner, loewis, ncoghlan, dmalcolm
2010年04月17日 22:34:13vstinnersetmessageid: <1271543653.66.0.483425076927.issue8279@psf.upfronthosting.co.za>
2010年04月17日 22:34:12vstinnerlinkissue8279 messages
2010年04月17日 22:34:11vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /