]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 9 Oct 2018 15:21:17 +0000 (08:21 -0700)
committerGitHub <noreply@github.com>
Tue, 9 Oct 2018 15:21:17 +0000 (08:21 -0700)
commit0ce31d340b264a550a3c574e1d6913f4affd4669
tree9487832b966710334a085ff193fd2969fbb5151c
parentc4c86fad8024dc91af8d785c33187c092b4e49d9
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)
(cherry picked from commit 79d21331e605fdc941f947621846b8563485aab6)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
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]