aboutsummaryrefslogtreecommitdiff
path: root/gdb/block.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/block.c')
-rw-r--r--gdb/block.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/block.c b/gdb/block.c
index d2f1fd7..fd96a52 100644
--- a/gdb/block.c
+++ b/gdb/block.c
@@ -53,10 +53,12 @@ contained_in (const struct block *a, const struct block *b)
/* Return the symbol for the function which contains a specified
- lexical block, described by a struct block BL. */
+ lexical block, described by a struct block BL. The return value
+ will not be an inlined function; the containing function will be
+ returned instead. */
struct symbol *
-block_function (const struct block *bl)
+block_linkage_function (const struct block *bl)
{
while (BLOCK_FUNCTION (bl) == 0 && BLOCK_SUPERBLOCK (bl) != 0)
bl = BLOCK_SUPERBLOCK (bl);