public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug python/13281] provide simple pretty-printer for enum
Date: Mon, 16 Jan 2012 19:44:00 -0000	[thread overview]
Message-ID: <bug-13281-4717-sHjhm7Q22a@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-13281-4717@http.sourceware.org/bugzilla/>

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.


  parent reply	other threads:[~2012-01-16 19:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-11 20:24 [Bug python/13281] New: " tromey at redhat dot com
2011-10-11 20:31 ` [Bug python/13281] " tromey at redhat dot com
2011-10-20 17:43 ` naesten at gmail dot com
2011-10-20 17:45 ` tromey at redhat dot com
2012-01-16 19:44 ` cvs-commit at gcc dot gnu.org [this message]
2012-01-16 19:45 ` tromey at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-13281-4717-sHjhm7Q22a@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).