SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 0 Python

gh-142095: Use thread local frame info in `py-bt` and `py-bt-full` when available (gh-143371)

In optimized and `-Og` builds, arguments and local variables are frequently
unavailable in gdb. This makes `py-bt` fail to print anything useful. Use the
`PyThreadState*` pointers `_Py_tss_gilstate` and `Py_tss_tstate` to find the
interpreter frame if we can't get the frame from the
`_PyEval_EvalFrameDefault` call.

Co-authored-by: Victor Stinner <vstinner@python.org>
S
Sam Gross committed
49c3b0a67a77bb42e736cea7dcbc1aa8fa704074
Parent: 5462002
Committed by GitHub <noreply@github.com> on 1/8/2026, 2:18:24 PM