From fa025f112f7467b124f7ac4be5e9c7bb3cc05ad8 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 18 Jan 2017 17:20:01 +0100 Subject: Update and enhance python-gdb.py Issue #29259: * Detect PyCFunction is the current frame, not only in the older frame * Ignore PyCFunction_Call() since it now calls _PyCFunction_FastCallDict(), and _PyCFunction_FastCallDict() is already detected --- Lib/test/test_gdb.py | 2 +- Tools/gdb/libpython.py | 26 ++++++++++---------------- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py index 60f1d92..557591f 100644 --- a/Lib/test/test_gdb.py +++ b/Lib/test/test_gdb.py @@ -845,7 +845,7 @@ id(42) breakpoint='time_gmtime', cmds_after_breakpoint=['py-bt-full'], ) - self.assertIn('#0