summaryrefslogtreecommitdiff
path: root/gdb/go-lang.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/go-lang.c
parent4b8791e10e574d3279e6783b58556893b0c92853 (diff)
downloadbinutils-gdb-6c00f721c834e2c622eb995a58f02900b6d98574.tar.gz
gdb: remove BLOCK_FUNCTION macro
Replace with equivalent methods. Change-Id: I31ec00f5bf85335c8b23d306ca0fe0b84d489101
Diffstat (limited to 'gdb/go-lang.c')
-rw-r--r--gdb/go-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/go-lang.c b/gdb/go-lang.c
index 74b8b214abb..b4d85b06dd9 100644
--- a/gdb/go-lang.c
+++ b/gdb/go-lang.c
@@ -418,7 +418,7 @@ go_block_package_name (const struct block *block)
{
while (block != NULL)
{
- struct symbol *function = BLOCK_FUNCTION (block);
+ struct symbol *function = block->function ();
if (function != NULL)
{