This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/10233] Pretty-printing support for tagged unions
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 4 Jun 2009 18:39:00 -0000
- Subject: [Bug symtab/10233] Pretty-printing support for tagged unions
- References: <20090603161557.10233.drow@sources.redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From tromey at redhat dot com 2009-06-04 18:38 -------
When the tag is in the (like gcc's tree), this should work already.
A typical approach would be to examine the type to see if it
"inherits" from the common structure, then examine the tag and return
the appropriate field from the union.
We can write some convenience code to make this very easy.
For a tag outside the union, I think you would have to instead
implement printers that work on the enclosing structs.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2009-06-04 18:38:59
date| |
http://sourceware.org/bugzilla/show_bug.cgi?id=10233
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.