old-cross-binutils/gdb/testsuite/gdb.python
Tom Tromey cafec44190 gdb
PR python/13281:
	* gdbtypes.h (TYPE_FLAG_ENUM): New macro.
	(struct main_type) <flag_flag_enum>: New field.
	* dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
	* NEWS: Add entries.
	* c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
	enums.
	* python/lib/gdb/printing.py (_EnumInstance): New class.
	(FlagEnumerationPrinter): Likewise.
gdb/doc
	* gdb.texinfo (gdb.printing): Document FlagEnumerationPrinter.
gdb/testsuite
	* gdb.base/printcmds.c (enum flag_enum): New.
	(three): New global.
	* gdb.base/printcmds.exp (test_print_enums): Add test for flag
	enum printing.
	* gdb.python/py-pp-maint.py (build_pretty_printer): Instantiate
	FlagEnumerationPrinter.
	* gdb.python/py-pp-maint.exp: Add tests for FlagEnumerationPrinter.
	* gdb.python/py-pp-maint.c (enum flag_enum): New.
	(fval): New global.
2012-01-16 19:44:16 +00:00
..
lib-types.cc Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
lib-types.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
Makefile.in
py-block.c Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
py-block.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-breakpoint.c Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
py-breakpoint.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-cmd.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-error.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
py-error.py Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
py-events-shlib.c Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
py-events.c 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu> 2012-01-05 13:11:31 +00:00
py-events.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-events.py Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-evsignal.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-evthreads.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-evthreads.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-finish-breakpoint.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-finish-breakpoint.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-finish-breakpoint.py Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-finish-breakpoint2.cc Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-finish-breakpoint2.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-finish-breakpoint2.py Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-frame-inline.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-frame-inline.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-frame.c
py-frame.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-function.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-inferior.c
py-inferior.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-infthread.c
py-infthread.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-mi.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-objfile-script-gdb.py.in Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-objfile-script.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-objfile-script.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-objfile.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-objfile.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-parameter.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-pp-maint.c gdb 2012-01-16 19:44:16 +00:00
py-pp-maint.exp gdb 2012-01-16 19:44:16 +00:00
py-pp-maint.py gdb 2012-01-16 19:44:16 +00:00
py-prettyprint.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-prettyprint.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-prettyprint.py Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-progspace.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-progspace.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-prompt.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-prompt.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-section-script.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-section-script.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-section-script.py Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-shared-sl.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-shared.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-shared.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-symbol.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-symbol.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-symtab.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-template.cc Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-template.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-type.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-type.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
py-value.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
py-value.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
python-1.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
python.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
python.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
source1 Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
source2.py Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00