From b32797e8b99b53d4cdd22a4e649792146b219adc Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 20 Jan 2023 07:20:38 -0700 Subject: Make block members 'private' This changes block to make the data members 'private'. --- gdb/block.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gdb/block.h') 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 -- cgit v1.1