forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -548,6 +548,9 @@ public:
|
||||
return per_bfd->gdbarch;
|
||||
}
|
||||
|
||||
/* Return true if OBJFILE has partial symbols. */
|
||||
|
||||
int has_partial_symbols ();
|
||||
|
||||
/* The object file's original name as specified by the user,
|
||||
made absolute, and tilde-expanded. However, it is not canonicalized
|
||||
@@ -738,8 +741,6 @@ extern void free_objfile_separate_debug (struct objfile *);
|
||||
extern void objfile_relocate (struct objfile *, const section_offsets &);
|
||||
extern void objfile_rebase (struct objfile *, CORE_ADDR);
|
||||
|
||||
extern int objfile_has_partial_symbols (struct objfile *objfile);
|
||||
|
||||
extern int objfile_has_full_symbols (struct objfile *objfile);
|
||||
|
||||
extern int objfile_has_symbols (struct objfile *objfile);
|
||||
|
||||
Reference in New Issue
Block a user