aboutsummaryrefslogtreecommitdiff
path: root/gdb/block.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-19 17:50:30 -0700
committerTom Tromey <tom@tromey.com>2023-02-19 12:51:06 -0700
commit7bf30a4447713192eb49be43d7f66630d570652b (patch)
tree0aed300f918b6a555dfaa77b67bb9b4a5f52c0e1 /gdb/block.h
parentcade9c8a459e4fd2f8a781eed21991e2487f90ee (diff)
downloadgdb-7bf30a4447713192eb49be43d7f66630d570652b.zip
gdb-7bf30a4447713192eb49be43d7f66630d570652b.tar.gz
gdb-7bf30a4447713192eb49be43d7f66630d570652b.tar.bz2
Convert block_static_link to method
This converts block_static_link to be a method. This was mostly written by script.
Diffstat (limited to 'gdb/block.h')
-rw-r--r--gdb/block.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/gdb/block.h b/gdb/block.h
index ce8c967..9bc8049 100644
--- a/gdb/block.h
+++ b/gdb/block.h
@@ -258,6 +258,19 @@ struct block
void set_compunit_symtab (struct compunit_symtab *);
+ /* Return a property to evaluate the static link associated to this
+ block.
+
+ In the context of nested functions (available in Pascal, Ada and
+ GNU C, for instance), a static link (as in DWARF's
+ DW_AT_static_link attribute) for a function is a way to get the
+ frame corresponding to the enclosing function.
+
+ Note that only objfile-owned and function-level blocks can have a
+ static link. Return NULL if there is no such property. */
+
+ struct dynamic_prop *static_link () const;
+
/* Addresses in the executable code that are in this block. */
CORE_ADDR m_start;
@@ -421,17 +434,6 @@ extern struct block *allocate_block (struct obstack *obstack);
extern struct block *allocate_global_block (struct obstack *obstack);
-/* Return a property to evaluate the static link associated to BLOCK.
-
- In the context of nested functions (available in Pascal, Ada and GNU C, for
- instance), a static link (as in DWARF's DW_AT_static_link attribute) for a
- function is a way to get the frame corresponding to the enclosing function.
-
- Note that only objfile-owned and function-level blocks can have a static
- link. Return NULL if there is no such property. */
-
-extern struct dynamic_prop *block_static_link (const struct block *block);
-
/* A block iterator. This structure should be treated as though it
were opaque; it is only defined here because we want to support
stack allocation of iterators. */