diff options
author | Tom Tromey <tom@tromey.com> | 2022-04-16 09:30:53 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-06-12 10:49:48 -0600 |
commit | 769520b7e5c3a6a941969b3b3c52fa04edf73295 (patch) | |
tree | 9e86b7d6c019e902852c089f5ca25cf42dfe8bdf /gdb/block.c | |
parent | 1b3261edfb7b0c66f538c778a07f0bf2547c906d (diff) | |
download | gdb-769520b7e5c3a6a941969b3b3c52fa04edf73295.zip gdb-769520b7e5c3a6a941969b3b3c52fa04edf73295.tar.gz gdb-769520b7e5c3a6a941969b3b3c52fa04edf73295.tar.bz2 |
Remove addrmap wrapper functions
This removes the various addrmap wrapper functions in favor of simple
method calls on the objects themselves.
Diffstat (limited to 'gdb/block.c')
-rw-r--r-- | gdb/block.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/block.c b/gdb/block.c index 39a39df..26126f5 100644 --- a/gdb/block.c +++ b/gdb/block.c @@ -138,8 +138,8 @@ find_block_in_blockvector (const struct blockvector *bl, CORE_ADDR pc) /* If we have an addrmap mapping code addresses to blocks, then use that. */ - if (bl->map () != nullptr) - return (const struct block *) addrmap_find (bl->map (), pc); + if (bl->map ()) + return (const struct block *) bl->map ()->find (pc); /* Otherwise, use binary search to find the last block that starts before PC. |