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 symtab/10233] Pretty-printing support for tagged unions


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


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