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] New: provide simple pretty-printer for enum


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

             Bug #: 13281
           Summary: provide simple pretty-printer for enum
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
        AssignedTo: unassigned@sourceware.org
        ReportedBy: tromey@redhat.com
    Classification: Unclassified


It would be nice if there were some library functions
to make it very easy to instantiate a pretty-printer for enums.
Particularly, it would be useful sometimes to have an enum
printer which looks to see which enumerators could be or'd
together to get the value being printed.
That is:
(gdb) print p->field
$3 = CONSTANT | GLOBAL | WHATEVER

-- 
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]