]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Make block members 'private'
authorTom Tromey <tom@tromey.com>
Fri, 20 Jan 2023 14:20:38 +0000 (07:20 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 19 Feb 2023 19:51:06 +0000 (12:51 -0700)
This changes block to make the data members 'private'.

gdb/block.h

index 7c40bae9af2a913c971c7fcb8050d6ea3b2f82fc..32e3c9ebcfd7f30e3107a385db85a2b5712eceaf 100644 (file)
@@ -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