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 | c648120540c7a1550bd7e65e660fda419ecf23b3 (patch) | |
tree | 89ac85f4f1477aa22342aca569cf9aa38d79ed4c /sim/m32c/trace.c | |
parent | 3b64bf15bc96d83e49521048bfe3eacf25d3649d (diff) | |
download | gdb-c648120540c7a1550bd7e65e660fda419ecf23b3.zip gdb-c648120540c7a1550bd7e65e660fda419ecf23b3.tar.gz gdb-c648120540c7a1550bd7e65e660fda419ecf23b3.tar.bz2 |
Remove DW_STRING and DW_STRING_IS_CANONICAL
This removes DW_STRING and DW_STRING_IS_CANONICAL, replacing them with
accessor methods on struct attribute. The new code ensures that a
string value will only ever be used when the form allows it.
gdb/ChangeLog
2020-09-29 Tom Tromey <tom@tromey.com>
* dwarf2/read.c (read_cutu_die_from_dwo)
(read_attribute_reprocess, read_attribute_value, read_attribute)
(dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
(dwarf2_fetch_constant_bytes): Update.
* dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
<set_string_noncanonical, set_string_canonical>: New methods.
<string_is_canonical>: Update comment.
<canonical_string_p>: Add assert.
(DW_STRING, DW_STRING_IS_CANONICAL): Remove.
* dwarf2/attribute.c (attribute::form_is_string): New method.
(attribute::string): Use it.
Diffstat (limited to 'sim/m32c/trace.c')
0 files changed, 0 insertions, 0 deletions