Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Dec 18, 2025

@vstinner
Copy link
Member Author

Here is a draft PR which adds py-bt-tss command to python-gdb.py. It's similar to py-bt but has a completly different implementation, it reads _Py_tss_gilstate or _Py_tss_tstate variable.

Example on Python 3.13 built in release mode. py-bt fails to rebuild the Python traceback:

(gdb) py-bt
Traceback (most recent call first):
  (unable to read python frame information)

whereas py-bt-tss just works:

(gdb) py-bt-tss
Traceback (most recent call first):
  File "/home/vstinner/python/main/script.py", line 2, in <module>
    while True:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant