Change objfile_has_partial_symbols to a method
authorTom Tromey <tom@tromey.com>
Sat, 20 Mar 2021 23:23:40 +0000 (17:23 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 20 Mar 2021 23:23:41 +0000 (17:23 -0600)
commita8ad4f3c17727fe2c499a9a8f775ccfe877326ac
tree848ea6efadcd795524e4bf124c944cff3aa6eb97
parent701823751bec1bbf2f1c96463994f894d33d2238
Change objfile_has_partial_symbols to a method

This changes objfile_has_partial_symbols to be a method on objfile.

There are some other functions that could benefit from this sort of
change, but this was the only one that was relevant to this series.

gdb/ChangeLog
2021-03-20  Tom Tromey  <tom@tromey.com>

* symfile.c (read_symbols): Update.
* objfiles.h (struct objfile) <has_partial_symbols>: New method.
(objfile_has_partial_symbols): Don't declare.
* objfiles.c (objfile::has_partial_symbols): Rename from
objfile_has_partial_symbols.
(objfile_has_symbols, have_partial_symbols): Update.
* elfread.c (elf_symfile_read): Update.
* dwarf2/read.c (dwarf2_has_info): Update.
* coffread.c (coff_symfile_read): Update.
gdb/ChangeLog
gdb/coffread.c
gdb/dwarf2/read.c
gdb/elfread.c
gdb/objfiles.c
gdb/objfiles.h
gdb/symfile.c
This page took 0.025372 seconds and 4 git commands to generate.