aboutsummaryrefslogtreecommitdiff
path: root/gdb/block.h
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/block.h
parent3c45e9f915ae4aeab7312d6fc55a947859057572 (diff)
downloadbinutils-3c9d050626d9ab8c28082af114b5e8246b57b7de.zip
binutils-3c9d050626d9ab8c28082af114b5e8246b57b7de.tar.gz
binutils-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/block.h')
-rw-r--r--gdb/block.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/block.h b/gdb/block.h
index 680b7d0..d1f4409 100644
--- a/gdb/block.h
+++ b/gdb/block.h
@@ -231,6 +231,13 @@ struct block
void set_using (struct using_direct *using_decl, struct obstack *obstack);
+ /* Return the symbol for the function which contains a specified
+ lexical block, described by a struct block. The return value
+ will not be an inlined function; the containing function will be
+ returned instead. */
+
+ struct symbol *linkage_function () const;
+
/* Addresses in the executable code that are in this block. */
CORE_ADDR m_start;
@@ -364,8 +371,6 @@ private:
struct block *m_blocks[1];
};
-extern struct symbol *block_linkage_function (const struct block *);
-
extern struct symbol *block_containing_function (const struct block *);
/* Return true if block A is lexically nested within block B, or if a