diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-01-28 11:19:50 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-27 22:05:03 -0400 |
commit | 6c00f721c834e2c622eb995a58f02900b6d98574 (patch) | |
tree | 5eed7fcd03403d92fa6c0297582b94d1b74358fe /gdb/ada-lang.c | |
parent | 4b8791e10e574d3279e6783b58556893b0c92853 (diff) | |
download | binutils-6c00f721c834e2c622eb995a58f02900b6d98574.zip binutils-6c00f721c834e2c622eb995a58f02900b6d98574.tar.gz binutils-6c00f721c834e2c622eb995a58f02900b6d98574.tar.bz2 |
gdb: remove BLOCK_FUNCTION macro
Replace with equivalent methods.
Change-Id: I31ec00f5bf85335c8b23d306ca0fe0b84d489101
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index bb9a16f..dfcaf12 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -5331,7 +5331,7 @@ ada_add_local_symbols (std::vector<struct block_symbol> &result, /* If we found a non-function match, assume that's the one. We only check this when finding a function boundary, so that we can accumulate all results from intervening blocks first. */ - if (BLOCK_FUNCTION (block) != nullptr && is_nonfunction (result)) + if (block->function () != nullptr && is_nonfunction (result)) return; block = BLOCK_SUPERBLOCK (block); @@ -13038,7 +13038,7 @@ ada_add_exceptions_from_frame (compiled_regex *preg, } } } - if (BLOCK_FUNCTION (block) != NULL) + if (block->function () != NULL) break; block = BLOCK_SUPERBLOCK (block); } |