add-symbol-file-from-memory patch breaks non-elf targets?
Joel Brobecker
brobecker@gnat.com
Fri Apr 23 22:15:00 GMT 2004
Jim,
> All right, here's a patch, tested on i686-pc-linux-gnu,
> powerpc-unknown-linux-gnu, and powerpc-ibm-aix4.3.3.0. Could folks
> try it out?
I was able to build GDB on HPUX and tru64 with the patch applied.
I also ran the testsuite, and got results that were within the ballpark
figures I remember seeing for these targets. So it all looks good to me.
> 2004-04-22 Jim Blandy <jimb@redhat.com>
>
> 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.
--
Joel
More information about the Gdb
mailing list