binutils-gdb/gdb/testsuite/gdb.python
Tom Tromey 18a9fc1261 * NEWS: Update.
* data-directory/Makefile.in (PYTHON_FILES): Add
	type_printers.py.
	* python/lib/gdb/command/type_printers.py: New file.
	* python/lib/gdb/command/types.py (TypePrinter): New class.
	(_get_some_type_recognizers, get_type_recognizers,
	apply_type_recognizers, register_type_printer): New
	functions.
	* python/py-objfile.c (objfile_object) <type_printers>: New
	field.
	(objfpy_dealloc): Decref new field.
	(objfpy_new): Set new field.
	(objfpy_get_type_printers, objfpy_set_type_printers): New
	functions.
	(objfile_to_objfile_object): Set new field.
	(objfile_getset): Add "type_printers".
	* python/py-progspace.c (pspace_object) <type_printers>: New
	field.
	(pspy_dealloc): Decref new field.
	(pspy_new): Set new field.
	(pspy_get_type_printers, pspy_set_type_printers): New functions.
	(pspace_to_pspace_object): Set new field.
	(pspace_getset): Add "type_printers".
	* python/python.c (start_type_printers, apply_type_printers,
	free_type_printers): New functions.
	(_initialize_python): Set gdb.type_printers.
	* python/python.h (start_type_printers, apply_type_printers,
	free_type_printers): Declare.
	* typeprint.c (type_print_raw_options, default_ptype_flags):
	Update for new fields.
	(do_free_global_table, create_global_typedef_table,
	find_global_typedef): New functions.
	(find_typedef_in_hash): Use find_global_typedef.
	(whatis_exp): Use create_global_typedef_table.  Change cleanup
	handling.
	* typeprint.h (struct type_print_options) <global_typedefs,
	global_printers>: New fields.
doc
	* gdb.texinfo (Symbols): Document "info type-printers",
	"enable type-printer" and "disable type-printer".
	(Python API): Add new node to menu.
	(Type Printing API): New node.
	(Progspaces In Python): Document type_printers field.
	(Objfiles In Python): Likewise.
	(gdb.types) <get_type_recognizers, apply_type_recognizers,
	register_type_printer, TypePrinter>: Document.
testsuite
	* gdb.base/completion.exp: Update for "info type-printers".
	* gdb.python/py-typeprint.cc: New file.
	* gdb.python/py-typeprint.exp: New file.
	* gdb.python/py-typeprint.py: New file.
2012-11-12 17:41:59 +00:00
..
Makefile.in
lib-types.cc
lib-types.exp gdb/testsuite/ 2012-06-24 06:36:27 +00:00
py-block.c
py-block.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-breakpoint.c
py-breakpoint.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-cmd.exp
py-error.exp
py-error.py
py-events-shlib.c
py-events.c
py-events.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-events.py
py-evsignal.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-evthreads.c
py-evthreads.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-explore-cc.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-explore.c
py-explore.cc
py-explore.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-finish-breakpoint.c
py-finish-breakpoint.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-finish-breakpoint.py
py-finish-breakpoint2.cc
py-finish-breakpoint2.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-finish-breakpoint2.py
py-frame-inline.c
py-frame-inline.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-frame.c
py-frame.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-function.exp
py-inferior.c gdb/ 2012-07-26 19:09:35 +00:00
py-inferior.exp gdb/ 2012-07-26 19:09:35 +00:00
py-infthread.c
py-infthread.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-mi.exp PR python/14386: 2012-08-06 18:44:45 +00:00
py-objfile-script-gdb.py.in
py-objfile-script.c
py-objfile-script.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-objfile.c
py-objfile.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-parameter.exp
py-pp-maint.c
py-pp-maint.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-pp-maint.py
py-prettyprint.c PR python/14386: 2012-08-06 18:44:45 +00:00
py-prettyprint.exp gdb/ 2012-07-16 19:15:39 +00:00
py-prettyprint.py PR python/14386: 2012-08-06 18:44:45 +00:00
py-progspace.c
py-progspace.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-prompt.c
py-prompt.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-section-script.c
py-section-script.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-section-script.py
py-shared-sl.c
py-shared.c
py-shared.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-strfns.c Add $_memeq, $_regex, $_streq, $_strlen convenience functions. 2012-08-10 20:26:00 +00:00
py-strfns.exp * gdb.threads/gcore-thread.exp: Use gdb_gcore_cmd. 2012-11-06 15:21:24 +00:00
py-symbol.c 2012-06-26 Siva Chandra Reddy <sivachandra@google.com> 2012-06-27 00:21:21 +00:00
py-symbol.exp PR python/14634: 2012-10-15 15:20:27 +00:00
py-symtab.exp PR python/14635: 2012-10-15 15:23:47 +00:00
py-template.cc
py-template.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-type.c
py-type.exp Add $_memeq, $_regex, $_streq, $_strlen convenience functions. 2012-08-10 20:26:00 +00:00
py-typeprint.cc * NEWS: Update. 2012-11-12 17:41:59 +00:00
py-typeprint.exp * NEWS: Update. 2012-11-12 17:41:59 +00:00
py-typeprint.py * NEWS: Update. 2012-11-12 17:41:59 +00:00
py-value-cc.exp * gdb.python/lib-types.exp: Use standard_testfile, 2012-06-22 17:59:33 +00:00
py-value.c
py-value.cc
py-value.exp (test_subscript_regression): Remove no longer necessary globals, 2012-09-06 17:57:41 +00:00
python-1.c
python.c
python.exp * NEWS: Update. 2012-09-20 20:54:11 +00:00
source1
source2.py