Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Oct 10, 2018

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.

test_gdb: get_gdb_repr() now uses the "backtrace 1" command after
breakpoint, as in the master branch.

Co-Authored-By: Marcel Plch [email protected]

(cherry picked from commit 9b7c74c)
(cherry picked from commit 79d2133)

https://bugs.python.org/issue32962

…tion -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.

test_gdb: get_gdb_repr() now uses the "backtrace 1" command after
breakpoint, as in the master branch.

Co-Authored-By: Marcel Plch <[email protected]>

(cherry picked from commit 9b7c74c)
(cherry picked from commit 79d2133)
@bedevere-bot bedevere-bot added tests Tests in the Lib/test dir awaiting merge labels Oct 10, 2018
@vstinner vstinner merged commit b274f1c into python:2.7 Oct 10, 2018
@vstinner vstinner deleted the gdb27 branch October 10, 2018 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants