This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/13281] provide simple pretty-printer for enum


http://sourceware.org/bugzilla/show_bug.cgi?id=13281

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-01-16 19:44:19 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    tromey@sourceware.org    2012-01-16 19:44:16

Modified files:
    gdb            : ChangeLog NEWS c-valprint.c dwarf2read.c 
                     gdbtypes.h 
    gdb/doc        : ChangeLog gdb.texinfo 
    gdb/python/lib/gdb: printing.py 
    gdb/testsuite  : ChangeLog 
    gdb/testsuite/gdb.base: printcmds.c printcmds.exp 
    gdb/testsuite/gdb.python: py-pp-maint.c py-pp-maint.exp 
                              py-pp-maint.py 

Log message:
    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.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.13738&r2=1.13739
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/NEWS.diff?cvsroot=src&r1=1.479&r2=1.480
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/c-valprint.c.diff?cvsroot=src&r1=1.88&r2=1.89
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/dwarf2read.c.diff?cvsroot=src&r1=1.606&r2=1.607
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbtypes.h.diff?cvsroot=src&r1=1.160&r2=1.161
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/ChangeLog.diff?cvsroot=src&r1=1.1264&r2=1.1265
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/gdb.texinfo.diff?cvsroot=src&r1=1.911&r2=1.912
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/lib/gdb/printing.py.diff?cvsroot=src&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3023&r2=1.3024
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/printcmds.c.diff?cvsroot=src&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/printcmds.exp.diff?cvsroot=src&r1=1.42&r2=1.43
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-pp-maint.c.diff?cvsroot=src&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-pp-maint.exp.diff?cvsroot=src&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-pp-maint.py.diff?cvsroot=src&r1=1.4&r2=1.5

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]