From d08b21016466561db7a17e44e29d1d7413d79265 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 6 May 2013 14:47:15 -0400 Subject: #17833: fix test_gdb failures seen on PPC64 Linux in test_threads (test.test_gdb.PyBtTests) --- Misc/NEWS | 3 +++ Tools/gdb/libpython.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS b/Misc/NEWS index 39e580b..e3b01e9 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -168,6 +168,9 @@ IDLE Tests ----- +- Issue #17833: Fix test_gdb failures seen on machines where debug symbols + for glibc are available (seen on PPC64 Linux). + - Issue #7855: Add tests for ctypes/winreg for issues found in IronPython. Initial patch by Dino Viehland. diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py index cab226e..84d4fa3 100644 --- a/Tools/gdb/libpython.py +++ b/Tools/gdb/libpython.py @@ -1460,7 +1460,7 @@ class Frame(object): # This assumes the _POSIX_THREADS version of Python/ceval_gil.h: name = self._gdbframe.name() if name: - return name.startswith('pthread_cond_timedwait') + return 'pthread_cond_timedwait' in name def is_gc_collect(self): '''Is this frame "collect" within the garbage-collector?''' -- cgit v0.12