aboutsummaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-16 17:44:20 -0700
committerTom Tromey <tom@tromey.com>2023-02-19 12:51:05 -0700
commit3c9d050626d9ab8c28082af114b5e8246b57b7de (patch)
tree14f9b06ca6b628eba07ef33e004828e5451f434b /gdb/blockframe.c
parent3c45e9f915ae4aeab7312d6fc55a947859057572 (diff)
downloadgdb-3c9d050626d9ab8c28082af114b5e8246b57b7de.zip
gdb-3c9d050626d9ab8c28082af114b5e8246b57b7de.tar.gz
gdb-3c9d050626d9ab8c28082af114b5e8246b57b7de.tar.bz2
Convert block_linkage_function to method
This converts block_linkage_function to be a method. This was mostly written by script.
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 2796fc9..65183b1 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -91,7 +91,7 @@ get_pc_function_start (CORE_ADDR pc)
bl = block_for_pc (pc);
if (bl)
{
- struct symbol *symbol = block_linkage_function (bl);
+ struct symbol *symbol = bl->linkage_function ();
if (symbol)
{
@@ -139,7 +139,7 @@ find_pc_sect_function (CORE_ADDR pc, struct obj_section *section)
if (b == 0)
return 0;
- return block_linkage_function (b);
+ return b->linkage_function ();
}
/* Return the function containing pc value PC.