aboutsummaryrefslogtreecommitdiff
path: root/gdb/block.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-16 17:27:28 -0700
committerTom Tromey <tom@tromey.com>2023-02-19 12:51:05 -0700
commita4dfe747564a5728da7c79ca2be3659148c87a49 (patch)
tree4f6df11e4db1f8a68e829e7b41cfebf2ac7b00e2 /gdb/block.h
parent7f5937df01cc829544baa921bfb81bfe0ccdc892 (diff)
downloadgdb-a4dfe747564a5728da7c79ca2be3659148c87a49.zip
gdb-a4dfe747564a5728da7c79ca2be3659148c87a49.tar.gz
gdb-a4dfe747564a5728da7c79ca2be3659148c87a49.tar.bz2
Convert block_inlined_p to method
This converts block_inlined_p to be a method. This was mostly written by script.
Diffstat (limited to 'gdb/block.h')
-rw-r--r--gdb/block.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/block.h b/gdb/block.h
index b9f1ba8..ab343b4 100644
--- a/gdb/block.h
+++ b/gdb/block.h
@@ -212,6 +212,10 @@ struct block
struct gdbarch *gdbarch () const;
+ /* Return true if BL represents an inlined function. */
+
+ bool inlined_p () const;
+
/* Addresses in the executable code that are in this block. */
CORE_ADDR m_start;
@@ -343,8 +347,6 @@ extern struct symbol *block_linkage_function (const struct block *);
extern struct symbol *block_containing_function (const struct block *);
-extern int block_inlined_p (const struct block *block);
-
/* Return true if block A is lexically nested within block B, or if a
and b have the same pc range. Return false otherwise. If
ALLOW_NESTED is true, then block A is considered to be in block B