aboutsummaryrefslogtreecommitdiff
path: root/gdb/block.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-01-28 16:24:06 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-04-27 22:05:03 -0400
commit3fe38936f6c0fe5d724806a1646fb7b67638b420 (patch)
tree269bb158ec698e5eb45e1c1e2aa997b3e2ee8ae4 /gdb/block.h
parent24d74bb5df30de096f0271d33ab4f17434cf2c49 (diff)
downloadgdb-3fe38936f6c0fe5d724806a1646fb7b67638b420.zip
gdb-3fe38936f6c0fe5d724806a1646fb7b67638b420.tar.gz
gdb-3fe38936f6c0fe5d724806a1646fb7b67638b420.tar.bz2
gdb: remove BLOCK_NAMESPACE macro
Replace with equivalent methods. Change-Id: If86b8cbdfb0f52e22c929614cd53e73358bab76a
Diffstat (limited to 'gdb/block.h')
-rw-r--r--gdb/block.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/gdb/block.h b/gdb/block.h
index d0ae270..2f71f3c 100644
--- a/gdb/block.h
+++ b/gdb/block.h
@@ -130,6 +130,14 @@ struct block
void set_multidict (multidictionary *multidict)
{ m_multidict = multidict; }
+ /* Return this block's namespace info. */
+ block_namespace_info *namespace_info () const
+ { return m_namespace_info; }
+
+ /* Set this block's namespace info. */
+ void set_namespace_info (block_namespace_info *namespace_info)
+ { m_namespace_info = namespace_info; }
+
/* Addresses in the executable code that are in this block. */
CORE_ADDR m_start;
@@ -155,7 +163,7 @@ struct block
/* Contains information about namespace-related info relevant to this block:
using directives and the current namespace scope. */
- struct block_namespace_info *namespace_info;
+ struct block_namespace_info *m_namespace_info;
/* Address ranges for blocks with non-contiguous ranges. If this
is NULL, then there is only one range which is specified by
@@ -178,8 +186,6 @@ struct global_block
struct compunit_symtab *compunit_symtab;
};
-#define BLOCK_NAMESPACE(bl) (bl)->namespace_info
-
/* Accessor for ranges field within block BL. */
#define BLOCK_RANGES(bl) (bl)->ranges