OSDN Git Service

2010-01-06 Tristan Gingold <gingold@adacore.com>
authorgingold <gingold>
Wed, 6 Jan 2010 19:11:02 +0000 (19:11 +0000)
committergingold <gingold>
Wed, 6 Jan 2010 19:11:02 +0000 (19:11 +0000)
commit2f25e915ba460cf31e4a1edeb5434a619ef10100
tree5d09ab085de2f8e0dd55287be544077d41405ed0
parent5826f3bca7cf93574eec0ba3a771a10a1c2f972c
2010-01-06  Tristan Gingold  <gingold@adacore.com>

* symtab.c (lookup_global_symbol_from_objfile): Rename objfile
parameter to main_objfile.  Iterate on all separate debug objfiles.
* symfile.h (symbol_file_add_separate)
(find_separate_debug_file_by_debuglink): Remove parameter names.
* symfile.c (symbol_file_add_separate): Use add_separate_objfile.
(reread_symbols): Use free_objfile_separate_debug.
* objfiles.h (struct objfile): Add separate_debug_objfile_link.
Adjust comment.
(objfile_separate_debug_iterate, add_separate_debug_objfile)
(free_objfile_separate_debug): New prototypes.
* objfiles.c (objfile_separate_debug_iterate): New function.
(add_separate_debug_objfile, free_objfile_separate_debug): New
functions.
(free_objfile): Use free_objfile_separate_debug.  Adjust for
multiple separate debug objfile.
(objfile_has_symbols): Adjust comment.  Iterate on all separate
debug objfiles.
* minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
debug objfile.
(lookup_minimal_symbol_text): Ditto.
(lookup_minimal_symbol_by_pc_name): Ditto.
(lookup_minimal_symbol_solib_trampoline): Ditto.
(lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
debug objfiles.
gdb/ChangeLog
gdb/minsyms.c
gdb/objfiles.c
gdb/objfiles.h
gdb/symfile.c
gdb/symfile.h
gdb/symtab.c