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/findvar.c | |
parent | 4b8791e10e574d3279e6783b58556893b0c92853 (diff) | |
download | gdb-6c00f721c834e2c622eb995a58f02900b6d98574.zip gdb-6c00f721c834e2c622eb995a58f02900b6d98574.tar.gz gdb-6c00f721c834e2c622eb995a58f02900b6d98574.tar.bz2 |
gdb: remove BLOCK_FUNCTION macro
Replace with equivalent methods.
Change-Id: I31ec00f5bf85335c8b23d306ca0fe0b84d489101
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r-- | gdb/findvar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c index 067fb3f..2e2b10b 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -534,7 +534,7 @@ get_hosting_frame (struct symbol *var, const struct block *var_block, /* Assuming we have a block for this frame: if we are at the function level, the immediate upper lexical block is in an outer function: follow the static link. */ - else if (BLOCK_FUNCTION (frame_block)) + else if (frame_block->function ()) { const struct dynamic_prop *static_link = block_static_link (frame_block); @@ -571,11 +571,11 @@ get_hosting_frame (struct symbol *var, const struct block *var_block, frame = block_innermost_frame (var_block); if (frame == NULL) { - if (BLOCK_FUNCTION (var_block) + if (var_block->function () && !block_inlined_p (var_block) - && BLOCK_FUNCTION (var_block)->print_name ()) + && var_block->function ()->print_name ()) error (_("No frame is currently executing in block %s."), - BLOCK_FUNCTION (var_block)->print_name ()); + var_block->function ()->print_name ()); else error (_("No frame is currently executing in specified" " block")); |