How do I get it to display member2 (assuming that member2 is the relevent member). I can tell which structure to use as there is a variable that has been set. Out of interest, is there a way of telling which member is the relevent one just by looking at dummy3?
A little correction. I wrote that there is problem with variant records and gdb. However, after checking I see that the problem is limited, gdb just does not print names (selector values) corresponding to variants. You can print members:
(gdb) print dummy3 $7 = { = { = {Member1 = {Hdr = {Item1 = 0, Item2 = 0, Item3 = 0}, Custom1 = 0}}, = {Member2 = []}, = {Member3 = 0}}} (gdb) print dummy3.Member1 $8 = {Hdr = {Item1 = 0, Item2 = 0, Item3 = 0}, Custom1 = 0} (gdb)