Fix Python 2.6 support in python-gdb.py

Issue #29259.
This commit is contained in:
Victor Stinner 2017-01-18 13:49:43 +01:00
parent 9722d7f142
commit 7612f1e36a

View file

@ -1518,8 +1518,8 @@ class Frame(object):
except RuntimeError: except RuntimeError:
return 'PyCFunction invocation (unable to read "func")' return 'PyCFunction invocation (unable to read "func")'
elif caller in {'_PyCFunction_FastCallDict', elif caller in ('_PyCFunction_FastCallDict',
'_PyCFunction_FastCallKeywords'}: '_PyCFunction_FastCallKeywords'):
try: try:
func = older._gdbframe.read_var('func_obj') func = older._gdbframe.read_var('func_obj')
return str(func) return str(func)