This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: add-symbol-file-from-memory patch breaks non-elf targets?
- From: Joel Brobecker <brobecker at gnat dot com>
- To: Jim Blandy <jimb at redhat dot com>
- Cc: Randolph Chung <randolph at tausq dot org>, roland at redhat dot com,gdb at sources dot redhat dot com
- Date: Fri, 23 Apr 2004 11:35:27 -0700
- Subject: Re: add-symbol-file-from-memory patch breaks non-elf targets?
- References: <20040421045817.GE17842@tausq.org> <vt2k7078n8c.fsf@zenia.home>
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