cpython icon indicating copy to clipboard operation
cpython copied to clipboard

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

Open colesbury opened this issue 2 weeks ago • 3 comments

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.

  • Issue: gh-142095

colesbury avatar Jan 02 '26 19:01 colesbury