aboutsummaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-02-06 22:21:21 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-04-27 22:05:03 -0400
commit6dd5a4bd44b7b7d2daf195dd5e48faeaf7231c17 (patch)
treec62d9b1cebef0e187266649bb031db7c62875a78 /gdb/blockframe.c
parent3fe38936f6c0fe5d724806a1646fb7b67638b420 (diff)
downloadgdb-6dd5a4bd44b7b7d2daf195dd5e48faeaf7231c17.zip
gdb-6dd5a4bd44b7b7d2daf195dd5e48faeaf7231c17.tar.gz
gdb-6dd5a4bd44b7b7d2daf195dd5e48faeaf7231c17.tar.bz2
gdb: remove BLOCK_RANGE_{START,END} macros
Replace with equivalent methods on blockrange. Change-Id: I20fd8f624e0129782c36768291891e7582d77c74
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index cfc4fd2..e91faaa 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -286,11 +286,11 @@ find_pc_partial_function_sym (CORE_ADDR pc,
int i;
for (i = 0; i < BLOCK_NRANGES (b); i++)
{
- if (BLOCK_RANGE_START (b, i) <= mapped_pc
- && mapped_pc < BLOCK_RANGE_END (b, i))
+ if (BLOCK_RANGE (b)[i].start () <= mapped_pc
+ && mapped_pc < BLOCK_RANGE (b)[i].end ())
{
- cache_pc_function_low = BLOCK_RANGE_START (b, i);
- cache_pc_function_high = BLOCK_RANGE_END (b, i);
+ cache_pc_function_low = BLOCK_RANGE (b)[i].start ();
+ cache_pc_function_high = BLOCK_RANGE (b)[i].end ();
break;
}
}
@@ -396,14 +396,14 @@ find_function_entry_range_from_pc (CORE_ADDR pc, const char **name,
for (int i = 0; i < BLOCK_NRANGES (block); i++)
{
- if (BLOCK_RANGE_START (block, i) <= entry_pc
- && entry_pc < BLOCK_RANGE_END (block, i))
+ if (BLOCK_RANGE (block)[i].start () <= entry_pc
+ && entry_pc < BLOCK_RANGE (block)[i].end ())
{
if (address != nullptr)
- *address = BLOCK_RANGE_START (block, i);
+ *address = BLOCK_RANGE (block)[i].start ();
if (endaddr != nullptr)
- *endaddr = BLOCK_RANGE_END (block, i);
+ *endaddr = BLOCK_RANGE (block)[i].end ();
return status;
}