diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-20 07:20:38 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-19 12:51:06 -0700 |
commit | b32797e8b99b53d4cdd22a4e649792146b219adc (patch) | |
tree | f7689a65d47d44d26b6980d0f30d301f4213a8c0 /gdb/block.h | |
parent | 522553837be31e09d182a8974429650f68c108f3 (diff) | |
download | gdb-b32797e8b99b53d4cdd22a4e649792146b219adc.zip gdb-b32797e8b99b53d4cdd22a4e649792146b219adc.tar.gz gdb-b32797e8b99b53d4cdd22a4e649792146b219adc.tar.bz2 |
Make block members 'private'
This changes block to make the data members 'private'.
Diffstat (limited to 'gdb/block.h')
-rw-r--r-- | gdb/block.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/block.h b/gdb/block.h index 7c40bae..32e3c9e 100644 --- a/gdb/block.h +++ b/gdb/block.h @@ -271,6 +271,12 @@ struct block : public allocate_on_obstack struct dynamic_prop *static_link () const; +private: + + /* If the namespace_info is NULL, allocate it via OBSTACK and + initialize its members to zero. */ + void initialize_namespace (struct obstack *obstack); + /* Addresses in the executable code that are in this block. */ CORE_ADDR m_start = 0; @@ -303,12 +309,6 @@ struct block : public allocate_on_obstack startaddr and endaddr above. */ struct blockranges *m_ranges = nullptr; - -private: - - /* If the namespace_info is NULL, allocate it via OBSTACK and - initialize its members to zero. */ - void initialize_namespace (struct obstack *obstack); }; /* The global block is singled out so that we can provide a back-link |