mirror of
https://github.com/python/cpython.git
synced 2026-01-17 12:50:02 +00:00
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.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| libpython.py | ||