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 | |
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')
-rw-r--r-- | gdb/dwarf2/aranges.c | 2 | ||||
-rw-r--r-- | gdb/dwarf2/aranges.h | 4 | ||||
-rw-r--r-- | gdb/dwarf2/read.c | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/gdb/dwarf2/aranges.c b/gdb/dwarf2/aranges.c index 0a4ae63..4287a5a 100644 --- a/gdb/dwarf2/aranges.c +++ b/gdb/dwarf2/aranges.c @@ -26,7 +26,7 @@ bool read_addrmap_from_aranges (dwarf2_per_objfile *per_objfile, dwarf2_section_info *section, - addrmap *mutable_map, + addrmap_mutable *mutable_map, deferred_warnings *warn) { /* Caller must ensure that the section has already been read. */ diff --git a/gdb/dwarf2/aranges.h b/gdb/dwarf2/aranges.h index d923e2d..2ba8a05 100644 --- a/gdb/dwarf2/aranges.h +++ b/gdb/dwarf2/aranges.h @@ -22,7 +22,7 @@ class dwarf2_per_objfile; class dwarf2_section_info; -class addrmap; +class addrmap_mutable; /* Read the address map data from DWARF-5 .debug_aranges, and use it to populate given addrmap. Returns true on success, false on @@ -30,7 +30,7 @@ class addrmap; extern bool read_addrmap_from_aranges (dwarf2_per_objfile *per_objfile, dwarf2_section_info *section, - addrmap *mutable_map, + addrmap_mutable *mutable_map, deferred_warnings *warn); #endif /* GDB_DWARF2_ARANGES_H */ 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; |