diff options
author | Tom Tromey <tromey@adacore.com> | 2024-06-05 08:55:21 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-06-24 09:11:30 -0600 |
commit | 440897605540c0703c29a84450ab3e5eccda91bd (patch) | |
tree | e8d98f5c25e6b2f40180cab36f7afa20bd9c5fc8 /gdb | |
parent | e433e995a948f6746eb4b2186152baa522193f55 (diff) | |
download | binutils-440897605540c0703c29a84450ab3e5eccda91bd.zip binutils-440897605540c0703c29a84450ab3e5eccda91bd.tar.gz binutils-440897605540c0703c29a84450ab3e5eccda91bd.tar.bz2 |
Make symtab members private
This rearranges symtab so that the private members appear at the end,
and then adds the "private" keyword.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/symtab.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index e75c638..19bb697 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -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; |