summaryrefslogtreecommitdiff
path: root/Tools/gdb
diff options
context:
space:
mode:
authorINADA Naoki <songofacandy@gmail.com>2017-02-03 07:43:03 +0900
committerINADA Naoki <songofacandy@gmail.com>2017-02-03 07:43:03 +0900
commit5566bbb8d563646d83e8172410fa0c085e8233b1 (patch)
treecb8ca83c2b1a6eb01a6b51258532b4fccf548b6d /Tools/gdb
parent144fff8b900f9d452402a8e47ff79e88e4916d28 (diff)
downloadcpython-git-5566bbb8d563646d83e8172410fa0c085e8233b1.tar.gz
Issue #29263: LOAD_METHOD support for C methods
Calling builtin method is at most 10% faster.
Diffstat (limited to 'Tools/gdb')
-rwxr-xr-xTools/gdb/libpython.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py
index cca9741ced..4f45256188 100755
--- a/Tools/gdb/libpython.py
+++ b/Tools/gdb/libpython.py
@@ -1540,10 +1540,7 @@ class Frame(object):
if caller in ('_PyCFunction_FastCallDict',
'_PyCFunction_FastCallKeywords'):
- if caller == '_PyCFunction_FastCallKeywords':
- arg_name = 'func_obj'
- else:
- arg_name = 'func'
+ arg_name = 'func'
# Within that frame:
# "func" is the local containing the PyObject* of the
# PyCFunctionObject instance