2004-04-08 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@gnu.org>
Thu, 15 Apr 2004 21:39:27 +0000 (21:39 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 15 Apr 2004 21:39:27 +0000 (21:39 +0000)
commit5417f6dc82e5c731b8af2bdad80edd29a21c59c7
tree7268973dcaa104fba4e46ca17f0a8258aaebdd5a
parent78cef34b48f85a5a79675fe0760e0ce17d0d7d25
2004-04-08  Roland McGrath  <roland@redhat.com>

* symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
argument instead of NAME.
(symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
in call to symbol_file_add_with_addrs_or_offsets.
(build_addr_info): New function, helper for ...
(symbol_file_add_from_memory): New function.
(add_symbol_file_from_memory_command): New function using that.
(_initialize_symfile): Register it for add-symbol-file-from-memory.
(pre_add_symbol_hook): Add const to argument type.
* symfile.h (symbol_file_add_from_memory): Declare it.
gdb/symfile.c
gdb/symfile.h