aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile-debug.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-19 20:50:59 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-02-06 15:48:18 -0500
commit0b17a4f78fb969e7c1ae298561ef6963c73006a7 (patch)
treed06819a30ab214273d28ec270d099e81630e96db /gdb/symfile-debug.c
parent9821f3fa56de3e2c13c234357421ae1839ce27f7 (diff)
downloadfsf-binutils-gdb-0b17a4f78fb969e7c1ae298561ef6963c73006a7.zip
fsf-binutils-gdb-0b17a4f78fb969e7c1ae298561ef6963c73006a7.tar.gz
fsf-binutils-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/symfile-debug.c')
-rw-r--r--gdb/symfile-debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/symfile-debug.c b/gdb/symfile-debug.c
index ab5fc0d..cd25789 100644
--- a/gdb/symfile-debug.c
+++ b/gdb/symfile-debug.c
@@ -289,7 +289,7 @@ objfile::lookup_symbol (block_enum kind, const char *name, domain_enum domain)
if (debug_symfile)
fprintf_filtered (gdb_stdlog, "qf->lookup_symbol (...) = %s\n",
retval
- ? debug_symtab_name (compunit_primary_filetab (retval))
+ ? debug_symtab_name (retval->primary_filetab ())
: "NULL");
return retval;
@@ -454,7 +454,7 @@ objfile::find_pc_sect_compunit_symtab (struct bound_minimal_symbol msymbol,
fprintf_filtered (gdb_stdlog,
"qf->find_pc_sect_compunit_symtab (...) = %s\n",
retval
- ? debug_symtab_name (compunit_primary_filetab (retval))
+ ? debug_symtab_name (retval->primary_filetab ())
: "NULL");
return retval;
@@ -495,7 +495,7 @@ objfile::find_compunit_symtab_by_address (CORE_ADDR address)
fprintf_filtered (gdb_stdlog,
"qf->find_compunit_symtab_by_address (...) = %s\n",
result
- ? debug_symtab_name (compunit_primary_filetab (result))
+ ? debug_symtab_name (result->primary_filetab ())
: "NULL");
return result;