]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-91960: Skip test_gdb if gdb cannot retrive Python frames (GH-108999) (...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 6 Sep 2023 15:32:36 +0000 (08:32 -0700)
committerGitHub <noreply@github.com>
Wed, 6 Sep 2023 15:32:36 +0000 (15:32 +0000)
commitd61b8f9b8b3e8c2fdb3f3f7a24149ca08270b573
tree0210ab1ceaacd6c294fab70aff9b53841bb15495
parentb8340905fcf86fd8813dd9971e499411476a74c1
[3.11] gh-91960: Skip test_gdb if gdb cannot retrive Python frames (GH-108999) (#109011)

gh-91960: Skip test_gdb if gdb cannot retrive Python frames (GH-108999)

Skip test_gdb if gdb is unable to retrieve Python frame objects: if a
frame is "<optimized out>". When Python is built with "clang -Og",
gdb can fail to retrive the 'frame' parameter of
_PyEval_EvalFrameDefault(). In this case, tests like py_bt() are
likely to fail. Without getting access to Python frames,
python-gdb.py is mostly clueless on retrieving the Python traceback.
Moreover, test_gdb is no longer skipped on macOS if Python is built
with Clang.
(cherry picked from commit fbce43a251488f666be9794c908a6613bf8ae260)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_gdb.py
Misc/NEWS.d/next/Tests/2023-09-06-15-36-51.gh-issue-91960.P3nD5v.rst [new file with mode: 0644]