]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH...
authorVictor Stinner <vstinner@redhat.com>
Tue, 9 Oct 2018 14:54:04 +0000 (16:54 +0200)
committerGitHub <noreply@github.com>
Tue, 9 Oct 2018 14:54:04 +0000 (16:54 +0200)
commit79d21331e605fdc941f947621846b8563485aab6
tree752dc60f09f3bf99e46f75511b652e2fbb54e1c3
parent7b313971805ca9b53f181f7b97e5376d0b89dc06
bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH-9656)

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.

Co-Authored-By: Marcel Plch <gmarcel.plch@gmail.com>
(cherry picked from commit 9b7c74ca32d1bec7128d550a9ab1b2ddc7046287)
Lib/test/test_gdb.py
Misc/NEWS.d/next/Tests/2018-05-10-16-59-15.bpo-32962.S-rcIN.rst [new file with mode: 0644]