aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/attribute.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-09-29 18:49:08 -0600
committerTom Tromey <tom@tromey.com>2020-09-29 20:29:06 -0600
commit95f982e587ddd0bf9a4799853982e7cc726280ad (patch)
tree24cc86de7085345edba4098eaef5440664b8fe34 /gdb/dwarf2/attribute.h
parentf800b00e51f81a3ccbc62f53eaa36e2996f33b9f (diff)
downloadgdb-95f982e587ddd0bf9a4799853982e7cc726280ad.zip
gdb-95f982e587ddd0bf9a4799853982e7cc726280ad.tar.gz
gdb-95f982e587ddd0bf9a4799853982e7cc726280ad.tar.bz2
Rename struct attribute accessors
This removes the "value_" prefix from the struct value accessors. This seemed unnecessarily wordy to me. gdb/ChangeLog 2020-09-29 Tom Tromey <tom@tromey.com> * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope) (dwarf2_get_pc_bounds, dwarf2_record_block_ranges) (partial_die_info::read, dwarf2_string_attr, new_symbol): Update. * dwarf2/attribute.h (struct attribute): Rename methods. * dwarf2/attribute.c (attribute::as_address): Rename from value_as_address. (attribute::as_string): Rename from value_as_string.
Diffstat (limited to 'gdb/dwarf2/attribute.h')
-rw-r--r--gdb/dwarf2/attribute.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2/attribute.h b/gdb/dwarf2/attribute.h
index ffb91e8..86b9136 100644
--- a/gdb/dwarf2/attribute.h
+++ b/gdb/dwarf2/attribute.h
@@ -44,11 +44,11 @@ struct attribute
{
/* Read the given attribute value as an address, taking the
attribute's form into account. */
- CORE_ADDR value_as_address () const;
+ CORE_ADDR as_address () const;
/* If the attribute has a string form, return the string value;
otherwise return NULL. */
- const char *value_as_string () const;
+ const char *as_string () const;
/* Return non-zero if ATTR's value is a section offset --- classes
lineptr, loclistptr, macptr or rangelistptr --- or zero, otherwise.