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/addrmap.c | |
parent | 85bfd77ee6c2cd73e04ea67966313a17edaad1c1 (diff) | |
download | binutils-a73afeff18db7304495bf7c42b25f3b93645b46f.zip binutils-a73afeff18db7304495bf7c42b25f3b93645b46f.tar.gz binutils-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/addrmap.c')
-rw-r--r-- | gdb/addrmap.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gdb/addrmap.c b/gdb/addrmap.c index 2753f85..162ab84 100644 --- a/gdb/addrmap.c +++ b/gdb/addrmap.c @@ -30,15 +30,6 @@ static_assert (sizeof (splay_tree_value) >= sizeof (void *)); /* Fixed address maps. */ -void -addrmap_fixed::set_empty (CORE_ADDR start, CORE_ADDR end_inclusive, - void *obj) -{ - internal_error ("addrmap_fixed_set_empty: " - "fixed addrmaps can't be changed\n"); -} - - void * addrmap_fixed::do_find (CORE_ADDR addr) const { |