[Bug symtab/10233] Pretty-printing support for tagged unions

tromey at redhat dot com sourceware-bugzilla@sourceware.org
Thu Jun 4 18:39:00 GMT 2009


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



More information about the Gdb-prs mailing list