diff options
author | Tom Tromey <tom@tromey.com> | 2020-09-29 18:49:08 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-09-29 20:29:06 -0600 |
commit | 9d2246fce014a0133882051f8527e2dbd869a31b (patch) | |
tree | e487374fac270b0558b4942962b803a56a909f0e /gdb/dwarf2/attribute.c | |
parent | c648120540c7a1550bd7e65e660fda419ecf23b3 (diff) | |
download | gdb-9d2246fce014a0133882051f8527e2dbd869a31b.zip gdb-9d2246fce014a0133882051f8527e2dbd869a31b.tar.gz gdb-9d2246fce014a0133882051f8527e2dbd869a31b.tar.bz2 |
Remove DW_BLOCK
This removes the DW_BLOCK accessor in favor of methods on struct
attribute. The methods, unlike the access, check the form.
Note that DW_FORM_data16 had to be handled by form_is_block, because
in practice that is how we store values of this form.
gdb/ChangeLog
2020-09-29 Tom Tromey <tom@tromey.com>
* dwarf2/read.c (read_call_site_scope)
(handle_data_member_location, dwarf2_add_member_fn)
(mark_common_block_symbol_computed, attr_to_dynamic_prop)
(partial_die_info::read, read_attribute_value)
(var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
(dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
(dwarf2_symbol_mark_computed): Update.
* dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
methods.
(DW_BLOCK): Remove.
* dwarf2/attribute.c (attribute::form_is_block): Add
DW_FORM_data16.
Diffstat (limited to 'gdb/dwarf2/attribute.c')
-rw-r--r-- | gdb/dwarf2/attribute.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/dwarf2/attribute.c b/gdb/dwarf2/attribute.c index 3fe1f08..c8e556f 100644 --- a/gdb/dwarf2/attribute.c +++ b/gdb/dwarf2/attribute.c @@ -94,7 +94,8 @@ attribute::form_is_block () const || form == DW_FORM_block2 || form == DW_FORM_block4 || form == DW_FORM_block - || form == DW_FORM_exprloc); + || form == DW_FORM_exprloc + || form == DW_FORM_data16); } /* See attribute.h. */ |