aboutsummaryrefslogtreecommitdiff
path: root/gdb/block.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-16 17:16:44 -0700
committerTom Tromey <tom@tromey.com>2023-02-19 12:51:05 -0700
commit46baa3c6cf679e53b233708f7d5efd543c1084d7 (patch)
treea909aa6e64da21c843407736e7907b941a4d1b38 /gdb/block.h
parent8f14fd112036be4300c81492a4659d518d9caf24 (diff)
downloadgdb-46baa3c6cf679e53b233708f7d5efd543c1084d7.zip
gdb-46baa3c6cf679e53b233708f7d5efd543c1084d7.tar.gz
gdb-46baa3c6cf679e53b233708f7d5efd543c1084d7.tar.bz2
Convert block_objfile to method
This converts block_objfile to be a method. This was mostly written by script.
Diffstat (limited to 'gdb/block.h')
-rw-r--r--gdb/block.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/block.h b/gdb/block.h
index 379359f..2243c9a 100644
--- a/gdb/block.h
+++ b/gdb/block.h
@@ -204,6 +204,10 @@ struct block
return this->ranges ()[0].start ();
}
+ /* Return the objfile of this block. */
+
+ struct objfile *objfile () const;
+
/* Addresses in the executable code that are in this block. */
CORE_ADDR m_start;
@@ -331,10 +335,6 @@ private:
struct block *m_blocks[1];
};
-/* Return the objfile of BLOCK, which must be non-NULL. */
-
-extern struct objfile *block_objfile (const struct block *block);
-
/* Return the architecture of BLOCK, which must be non-NULL. */
extern struct gdbarch *block_gdbarch (const struct block *block);