]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove byte vectors from cplus_struct_type
authorTom Tromey <tromey@adacore.com>
Thu, 21 Sep 2023 16:21:04 +0000 (10:21 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 21 Nov 2023 21:52:05 +0000 (14:52 -0700)
commit61461a5b41fb660ef11a7a9ffe457ea52b5c2a6a
tree1455a4495a78e319930a706c1dc6cf30689f248c
parent5ffb4736f079c3dbc01be4b6cb961a60094ee18f
Remove byte vectors from cplus_struct_type

This removes some byte vectors from cplus_struct_type, moving the
information into bitfields in holes in struct field.

A new 'enum accessibility' is added to hold some of this information.
A similar enum is removed from c-varobj.c.

Note that the stabs reader treats "ignored" as an accessibility.
However, the stabs texinfo documents this as a public field that is
optimized out -- unfortunately nobody has updated the stabs reader to
use the better value-based optimized-out machinery.  I looked and
apparently gcc never emitted this visibility value, so whatever
compiler generated this stab is unknown.  I left a comment in
gdbtypes.h to this effect.

Acked-By: Simon Marchi <simon.marchi@efficios.com>
Reviewed-by: Keith Seitz <keiths@redhat.com>
gdb/c-varobj.c
gdb/dwarf2/read.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/stabsread.c