Move the symbol-file-from-memory functions into their own file.
authorJim Blandy <jimb@codesourcery.com>
Sun, 2 May 2004 10:14:02 +0000 (10:14 +0000)
committerJim Blandy <jimb@codesourcery.com>
Sun, 2 May 2004 10:14:02 +0000 (10:14 +0000)
commiteb4556d736ee14965782a320db1496fb070e54c3
tree3fcf21764625660cd2d0cc44d1f9a5ab42129959
parentad7b9a3686f628880fa3d7aa900f1211ae27e90e
Move the symbol-file-from-memory functions into their own file.
* symfile-mem.c, symfile-mem.h: New files.
* symfile.c (symbol_file_add_from_bfd): New function.
(symbol_file_add): Call symbol_file_add_from_bfd.
(symbol_file_add_from_memory, add_symbol_file_from_memory_command):
Moved to symfile-mem.c.
(_initialize_symfile): Move definition of
add-symbol-file-from-memory command to symfile-mem.c.
* symfile.h (symbol_file_add_from_bfd): New declaration.
* config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
* config/powerpc/linux.mt (TDEPFILES): Same.
* Makefile.in (SFILES): Add symfile-mem.c.
(symfile_mem_h): New variable.
(HFILES_NO_SRCDIR): Add symfile-mem.h.
(symfile-mem.o): New rule.
gdb/ChangeLog
gdb/Makefile.in
gdb/config/i386/linux.mt
gdb/symfile-mem.c [new file with mode: 0644]
gdb/symfile-mem.h [new file with mode: 0644]
gdb/symfile.c
gdb/symfile.h