New submission from STINNER Victor <victor.stin...@haypocalc.com>: If Python is compiled with gcc -O3, gdb is unable to get the f argument of PyEval_EvalFrameEx(). It is possible to retrieve "f" from the caller, PyEval_EvalCodeEx().
Attached patch tries to implement this idea and enable more test_gdb tests on optimized Python. The patch has a problem because some tests fails if Python is not optimized (Python compiled in debug mode). -- The patch fix other minor bugs in libpython.py related to optimized Python. ---------- files: gdb.patch keywords: patch messages: 149778 nosy: haypo priority: normal severity: normal status: open title: python-gdb.py: patch to improve support of optimized Python versions: Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file24032/gdb.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13628> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com