From: Tom Tromey Date: Fri, 20 Jan 2023 14:20:38 +0000 (-0700) Subject: Make block members 'private' X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b32797e8b99b53d4cdd22a4e649792146b219adc;p=binutils-gdb.git Make block members 'private' This changes block to make the data members 'private'. --- diff --git a/gdb/block.h b/gdb/block.h index 7c40bae9af2..32e3c9ebcfd 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