forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-91960: Skip test_gdb if gdb cannot retrive Python frames (py…
…thon#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.
- Loading branch information
Showing
2 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
Misc/NEWS.d/next/Tests/2023-09-06-15-36-51.gh-issue-91960.P3nD5v.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
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. Patch by Victor Stinner. |