From 414705d1c2d359694459d3991a0975d051ac70b5 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 20 Apr 2022 17:17:11 -0400 Subject: gdb: remove BLOCKVECTOR_MAP macro Replace with equivalent methods. Change-Id: I4e56c76dfc363c1447686fb29c4212ea18b4dba0 --- gdb/block.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/block.c') diff --git a/gdb/block.c b/gdb/block.c index 1c3a003..39a39df 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 (BLOCKVECTOR_MAP (bl)) - return (const struct block *) addrmap_find (BLOCKVECTOR_MAP (bl), pc); + if (bl->map () != nullptr) + return (const struct block *) addrmap_find (bl->map (), pc); /* Otherwise, use binary search to find the last block that starts before PC. -- cgit v1.1