diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-19 20:50:59 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-02-06 15:48:18 -0500 |
commit | 0b17a4f78fb969e7c1ae298561ef6963c73006a7 (patch) | |
tree | d06819a30ab214273d28ec270d099e81630e96db /gdb/symtab.c | |
parent | 9821f3fa56de3e2c13c234357421ae1839ce27f7 (diff) | |
download | gdb-0b17a4f78fb969e7c1ae298561ef6963c73006a7.zip gdb-0b17a4f78fb969e7c1ae298561ef6963c73006a7.tar.gz gdb-0b17a4f78fb969e7c1ae298561ef6963c73006a7.tar.bz2 |
gdb: rename compunit_primary_filetab to compunit_symtab::primary_filetab
Make compunit_primary_filetab a method of compunit_symtab.
Change-Id: Iee3c4f7e36d579bf763c5bba146e5e10d6766768
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 44b5bfb..2028e83 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -362,12 +362,12 @@ compunit_symtab::set_call_site_htab (htab_t call_site_htab) /* See symtab.h. */ struct symtab * -compunit_primary_filetab (const struct compunit_symtab *cust) +compunit_symtab::primary_filetab () const { - gdb_assert (COMPUNIT_FILETABS (cust) != NULL); + gdb_assert (this->filetabs != nullptr); /* The primary file symtab is the first one in the list. */ - return COMPUNIT_FILETABS (cust); + return this->filetabs; } /* See symtab.h. */ @@ -375,7 +375,7 @@ compunit_primary_filetab (const struct compunit_symtab *cust) enum language compunit_language (const struct compunit_symtab *cust) { - struct symtab *symtab = compunit_primary_filetab (cust); + struct symtab *symtab = cust->primary_filetab (); /* The language of the compunit symtab is the language of its primary source file. */ @@ -2376,7 +2376,7 @@ Internal: %s symbol `%s' found in %s psymtab but not in symtab.\n\ (if a template, try specifying an instantiation: %s<type>)."), block_index == GLOBAL_BLOCK ? "global" : "static", name, - symtab_to_filename_for_display (compunit_primary_filetab (cust)), + symtab_to_filename_for_display (cust->primary_filetab ()), name, name); } |