aboutsummaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-01-28 11:19:50 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-04-27 22:05:03 -0400
commit6c00f721c834e2c622eb995a58f02900b6d98574 (patch)
tree5eed7fcd03403d92fa6c0297582b94d1b74358fe /gdb/blockframe.c
parent4b8791e10e574d3279e6783b58556893b0c92853 (diff)
downloadgdb-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/blockframe.c')
-rw-r--r--gdb/blockframe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index fec7f05..aaf7695 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -122,10 +122,10 @@ get_frame_function (struct frame_info *frame)
if (bl == NULL)
return NULL;
- while (BLOCK_FUNCTION (bl) == NULL && BLOCK_SUPERBLOCK (bl) != NULL)
+ while (bl->function () == NULL && BLOCK_SUPERBLOCK (bl) != NULL)
bl = BLOCK_SUPERBLOCK (bl);
- return BLOCK_FUNCTION (bl);
+ return bl->function ();
}