Change how accessibility is handled in dwarf2/read.c
authorTom Tromey <tom@tromey.com>
Wed, 30 Sep 2020 00:49:08 +0000 (18:49 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 30 Sep 2020 02:29:07 +0000 (20:29 -0600)
commitbf23a26804608145c316c7516b1aceecc055a888
treebe20da9ed4760c0ba74a3da2a6a32a5bd1d3be39
parent7a5f294dbd11a64f5231f0fecdb163e3c7ecfaf8
Change how accessibility is handled in dwarf2/read.c

dwarf2/read.c uses dwarf2_default_access_attribute to check for the
default access attribute.  This patch simplifies the code by moving
more of the access processing into this function, changing its name to
reflect the difference.  This also ensures that the attribute's form
is respected, by changing to code to use the constant_value method.

gdb/ChangeLog
2020-09-29  Tom Tromey  <tom@tromey.com>

* dwarf2/read.c (dwarf2_access_attribute): Rename from
dwarf2_default_access_attribute.  Look up attribute.
(dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
Update.
gdb/ChangeLog
gdb/dwarf2/read.c
This page took 0.02512 seconds and 4 git commands to generate.