[3.7] bpo-32962: Backport python-gdb.py and test_gdb.py from master by vstinner · Pull Request #7710 · python/cpython (original) (raw)
…tion -O0 (#6754)
When Python is built with the intel control-flow protection flags, -mcet -fcf-protection, gdb is not able to read the stack without actually jumping inside the function. This means an extra 'next' command is required to make the $pc (program counter) enter the function and make the stack of the function exposed to gdb.
(cherry picked from commit 9b7c74c)