diff options
author | Tom Tromey <tom@tromey.com> | 2024-01-14 11:20:39 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-01-15 11:50:24 -0700 |
commit | a73afeff18db7304495bf7c42b25f3b93645b46f (patch) | |
tree | 637c219a28b680885790b6c38a777c78c570250c /gdb/dwarf2/read.c | |
parent | 85bfd77ee6c2cd73e04ea67966313a17edaad1c1 (diff) | |
download | gdb-a73afeff18db7304495bf7c42b25f3b93645b46f.zip gdb-a73afeff18db7304495bf7c42b25f3b93645b46f.tar.gz gdb-a73afeff18db7304495bf7c42b25f3b93645b46f.tar.bz2 |
Remove addrmap_fixed::set_entry
It occurred to me that there is no reason for addrmap_fixed::set_entry
to exist. This patch removes it and removes the abstract virtual
function from the base class. This then required a few minor changes
in the DWARF reader. I consider this a type-safety improvement.
Tested by rebuilding.
Reviewed-By: Tom de Vries <tdevries@suse.de>
Diffstat (limited to 'gdb/dwarf2/read.c')
-rw-r--r-- | gdb/dwarf2/read.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index a50248c..1b5e566 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -907,7 +907,7 @@ static enum pc_bounds_kind dwarf2_get_pc_bounds (struct die_info *, unrelocated_addr *, unrelocated_addr *, struct dwarf2_cu *, - addrmap *, + addrmap_mutable *, void *); static void get_scope_pc_bounds (struct die_info *, @@ -11013,7 +11013,7 @@ dwarf2_ranges_process (unsigned offset, struct dwarf2_cu *cu, dwarf_tag tag, static int dwarf2_ranges_read (unsigned offset, unrelocated_addr *low_return, unrelocated_addr *high_return, struct dwarf2_cu *cu, - addrmap *map, void *datum, dwarf_tag tag) + addrmap_mutable *map, void *datum, dwarf_tag tag) { dwarf2_per_objfile *per_objfile = cu->per_objfile; int low_set = 0; @@ -11123,7 +11123,7 @@ dwarf2_get_pc_bounds_entry_point (die_info *die, unrelocated_addr *low, static pc_bounds_kind dwarf_get_pc_bounds_ranges_or_highlow_pc (die_info *die, unrelocated_addr *low, unrelocated_addr *high, dwarf2_cu *cu, - addrmap *map, void *datum) + addrmap_mutable *map, void *datum) { gdb_assert (low != nullptr); gdb_assert (high != nullptr); @@ -11192,7 +11192,7 @@ dwarf_get_pc_bounds_ranges_or_highlow_pc (die_info *die, unrelocated_addr *low, static enum pc_bounds_kind dwarf2_get_pc_bounds (struct die_info *die, unrelocated_addr *lowpc, unrelocated_addr *highpc, struct dwarf2_cu *cu, - addrmap *map, void *datum) + addrmap_mutable *map, void *datum) { dwarf2_per_objfile *per_objfile = cu->per_objfile; |