-
- Downloads
Remove Python 2.4 and 2.5 support
This removes all the remainings spots I could find that work around issues in Python 2.4 and 2.5. I don't have a good way to test that Python 2.6 still works. Tested by the buildbot. gdb/ChangeLog 2019-02-27 Tom Tromey <tromey@adacore.com> * config.in, configure: Rebuild. * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never define. * python/py-value.c: Remove Python 2.4 workaround. * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4 workaround. * python/py-type.c (convert_field, gdbpy_initialize_types): Remove Python 2.4 workaround. * python/python-internal.h: Remove Python 2.4 comment. (Py_ssize_t): Don't define. (PyVarObject_HEAD_INIT, Py_TYPE): Don't define. (gdb_Py_DECREF): Remove Python 2.4 workaround. (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove. (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove. * python/python.c (do_start_initialization): Remove Python 2.4 workaround. * python/py-prettyprint.c (class dummy_python_frame): Remove. (print_children): Remove Python 2.4 workaround. * python/py-inferior.c (buffer_procs): Remove Python 2.4 workaround. (CHARBUFFERPROC_NAME): Remove. * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove Python 2.4 workaround. gdb/testsuite/ChangeLog 2019-02-27 Tom Tromey <tromey@adacore.com> * lib/gdb.exp (skip_python_tests_prompt): Don't check for Python 2.4. * gdb.python/py-finish-breakpoint.exp: Remove Python 2.4 workaround. gdb/ChangeLog 2019-02-27 Tom Tromey <tromey@adacore.com> * config.in, configure: Rebuild. * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never define. * python/py-value.c: Remove Python 2.4 workaround. * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4 workaround. * python/py-type.c (convert_field, gdbpy_initialize_types): Remove Python 2.4 workaround. * python/python-internal.h: Remove Python 2.4 comment. (Py_ssize_t): Don't define. (PyVarObject_HEAD_INIT, Py_TYPE): Don't define. (gdb_Py_DECREF): Remove Python 2.4 workaround. (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove. (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove. * python/python.c (do_start_initialization): Remove Python 2.4 workaround. * python/py-prettyprint.c (class dummy_python_frame): Remove. (print_children): Remove Python 2.4 workaround. * python/py-inferior.c (buffer_procs): Remove Python 2.4 workaround. (CHARBUFFERPROC_NAME): Remove. * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove Python 2.4 workaround.
Showing
- gdb/ChangeLog 25 additions, 0 deletionsgdb/ChangeLog
- gdb/config.in 0 additions, 6 deletionsgdb/config.in
- gdb/configure 2 additions, 86 deletionsgdb/configure
- gdb/configure.ac 2 additions, 14 deletionsgdb/configure.ac
- gdb/python/py-breakpoint.c 2 additions, 6 deletionsgdb/python/py-breakpoint.c
- gdb/python/py-inferior.c 1 addition, 10 deletionsgdb/python/py-inferior.c
- gdb/python/py-prettyprint.c 0 additions, 94 deletionsgdb/python/py-prettyprint.c
- gdb/python/py-type.c 2 additions, 6 deletionsgdb/python/py-type.c
- gdb/python/py-utils.c 1 addition, 2 deletionsgdb/python/py-utils.c
- gdb/python/py-value.c 0 additions, 3 deletionsgdb/python/py-value.c
- gdb/python/python-internal.h 1 addition, 52 deletionsgdb/python/python-internal.h
- gdb/python/python.c 3 additions, 5 deletionsgdb/python/python.c
- gdb/testsuite/ChangeLog 7 additions, 0 deletionsgdb/testsuite/ChangeLog
- gdb/testsuite/gdb.python/py-finish-breakpoint.exp 0 additions, 7 deletionsgdb/testsuite/gdb.python/py-finish-breakpoint.exp
- gdb/testsuite/lib/gdb.exp 0 additions, 12 deletionsgdb/testsuite/lib/gdb.exp
Loading
Please register or sign in to comment