From 967cf47793f3a66dd3f8637279fe6d891dd2de9f Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 4 Jun 2010 18:18:28 +0000 Subject: Add support for enabling/disabling individual pretty-printers. * python/py-prettyprint.c (search_pp_list): Skip disabled printers. * python/python-internal.h (gdbpy_enabled_cst): Declare. * python/python.c (gdbpy_enabled_cst): Define. (_initialize_python): Initialize gdbpy_enabled_cst. * NEWS: Add entry. doc/ * gdb.texinfo (Python API): New node `Disabling Pretty-Printers'. testsuite/ * gdb.python/py-prettyprint.exp: Add new test for enabled and disabled printers. * gdb.python/py-prettyprint.py (disable_lookup_function): New function. (enable_lookup_function): New function. --- gdb/python/python-internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/python/python-internal.h') diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index bc07b5d..5bd2a4b 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -200,6 +200,7 @@ extern PyObject *gdbpy_doc_cst; extern PyObject *gdbpy_children_cst; extern PyObject *gdbpy_to_string_cst; extern PyObject *gdbpy_display_hint_cst; +extern PyObject *gdbpy_enabled_cst; extern PyObject *gdbpy_gdberror_exc; -- cgit v1.1