summaryrefslogtreecommitdiffstats
path: root/Tools/gdb
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-03-09 18:35:26 (GMT)
committerGitHub <noreply@github.com>2020-03-09 18:35:26 (GMT)
commit6d0ee60740f2862a878f009671b1aaa75aeb0c2a (patch)
tree9f698f0abb3d9c70cc21d4162735339001ff275a /Tools/gdb
parente5ccc94bbb153431698b2391df625e8d47a93276 (diff)
downloadcpython-6d0ee60740f2862a878f009671b1aaa75aeb0c2a.zip
cpython-6d0ee60740f2862a878f009671b1aaa75aeb0c2a.tar.gz
cpython-6d0ee60740f2862a878f009671b1aaa75aeb0c2a.tar.bz2
bpo-36184: Port python-gdb.py to FreeBSD (GH-18873)
python-gdb.py now checks for "take_gil" function name to check if a frame tries to acquire the GIL, instead of checking for "pthread_cond_timedwait" which is specific to Linux and can be a different condition than the GIL.
Diffstat (limited to 'Tools/gdb')
-rwxr-xr-xTools/gdb/libpython.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py
index 2ab7d3b..cd7ae10 100755
--- a/Tools/gdb/libpython.py
+++ b/Tools/gdb/libpython.py
@@ -1600,7 +1600,7 @@ class Frame(object):
# This assumes the _POSIX_THREADS version of Python/ceval_gil.h:
name = self._gdbframe.name()
if name:
- return 'pthread_cond_timedwait' in name
+ return (name == 'take_gil')
def is_gc_collect(self):
'''Is this frame "collect" within the garbage-collector?'''