aboutsummaryrefslogtreecommitdiff
path: root/mkdep
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-02-09 13:31:42 -0700
committerTom Tromey <tom@tromey.com>2018-02-26 09:21:08 -0700
commit7c22600aabfd10e190e98fff0b7c2d69cd191325 (patch)
treefe62912bb7071c2d73027cd20f5c0b3c7fb8bf04 /mkdep
parent15ce8941e7d2807a3396a6874c528b24c387660a (diff)
downloadgdb-7c22600aabfd10e190e98fff0b7c2d69cd191325.zip
gdb-7c22600aabfd10e190e98fff0b7c2d69cd191325.tar.gz
gdb-7c22600aabfd10e190e98fff0b7c2d69cd191325.tar.bz2
Initial support for variant parts
This adds some initial support for variant parts to gdbtypes.h. A variant part is represented as a union. The union has a flag indicating that it has a discriminant, and information about the discriminant is attached using the dynamic property system. 2018-02-26 Tom Tromey <tom@tromey.com> * value.h (value_union_variant): Declare. * valops.c (value_union_variant): New function. * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro. (struct discriminant_info): New. (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New enumerator. (struct main_type) <flag_discriminated_union>: New field.
Diffstat (limited to 'mkdep')
0 files changed, 0 insertions, 0 deletions