summaryrefslogtreecommitdiff
path: root/Tools/gdb/libpython.py
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2013-05-06 14:47:15 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2013-05-06 14:47:15 -0400
commit9fca0e8466f202eeef2a89584a6722c21db1bf0b (patch)
treeb86eda951f20300466bfeb5c882ab7edb547169c /Tools/gdb/libpython.py
parenta3b279c884e614a5069848a6e5f0875752e7389c (diff)
downloadcpython-9fca0e8466f202eeef2a89584a6722c21db1bf0b.tar.gz
#17833: fix test_gdb failures seen on PPC64 Linux in test_threads (test.test_gdb.PyBtTests)
Diffstat (limited to 'Tools/gdb/libpython.py')
-rw-r--r--Tools/gdb/libpython.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py
index cab226e5d0..84d4fa31c4 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?'''