]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Make symtab members private
authorTom Tromey <tromey@adacore.com>
Wed, 5 Jun 2024 14:55:21 +0000 (08:55 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 24 Jun 2024 15:11:30 +0000 (09:11 -0600)
This rearranges symtab so that the private members appear at the end,
and then adds the "private" keyword.

gdb/symtab.h

index e75c6389953d3336f2cb1d6bc2bbbf95faedf020..19bb697a5a112822197d251040a9a8bd82089786 100644 (file)
@@ -1765,15 +1765,6 @@ struct symtab
 
   struct symtab *next;
 
-  /* Backlink to containing compunit symtab.  */
-
-  struct compunit_symtab *m_compunit;
-
-  /* Table mapping core addresses to line numbers for this file.
-     Can be NULL if none.  Never shared between different symtabs.  */
-
-  const struct linetable *m_linetable;
-
   /* Name of this source file, in a form appropriate to print to the user.
 
      This pointer is never nullptr.  */
@@ -1790,6 +1781,17 @@ struct symtab
      This pointer is never nullptr.*/
   const char *filename_for_id;
 
+private:
+
+  /* Backlink to containing compunit symtab.  */
+
+  struct compunit_symtab *m_compunit;
+
+  /* Table mapping core addresses to line numbers for this file.
+     Can be NULL if none.  Never shared between different symtabs.  */
+
+  const struct linetable *m_linetable;
+
   /* Language of this source file.  */
 
   enum language m_language;