diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2017-12-08 22:44:11 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-12-08 23:37:30 +0000 |
commit | abccd1e7b7a37385159610ca4e0bc2632a547e9a (patch) | |
tree | 309545b2c8c990f68c311b13b9b729d2d7885391 /gdb/symfile.h | |
parent | 437afbb81e3a04cbd933fc534a50c686eaa63b19 (diff) | |
download | gdb-abccd1e7b7a37385159610ca4e0bc2632a547e9a.zip gdb-abccd1e7b7a37385159610ca4e0bc2632a547e9a.tar.gz gdb-abccd1e7b7a37385159610ca4e0bc2632a547e9a.tar.bz2 |
Change dwarf2_initialize_objfile's return value
dwarf2_initialize_objfile was returning boolean whether it is psymtabs
or .gdb_index while now it needs to return also whether it is
.debug_names.
gdb/ChangeLog
2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
* defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here
declarations from elfread.c.
(dwarf2_initialize_objfile): Change return value.
* elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these
declarations to defs.h.
(elf_symfile_read): Adjust dwarf2_initialize_objfile caller.
* symfile.h (dwarf2_initialize_objfile): Change return type.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r-- | gdb/symfile.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h index fa38abf..194dccf 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -601,7 +601,7 @@ extern void dwarf2_get_section_info (struct objfile *, asection **, const gdb_byte **, bfd_size_type *); -extern int dwarf2_initialize_objfile (struct objfile *); +extern const sym_fns &dwarf2_initialize_objfile (struct objfile *); extern void dwarf2_build_psymtabs (struct objfile *); extern void dwarf2_build_frame_info (struct objfile *); |