Commit Graph

33965 Commits

Author SHA1 Message Date
Thiemo Seufer b49e97c944 Actually commit the new files ommitted before. 2002-04-04 07:10:00 +00:00
Thiemo Seufer c6e90b027b * Makefile.am: Add elfxx-mips.c to the known backends.
(elf32-mips.lo): remove dependency to coff/external.h.
	* Makefile.in: Regenerate.
	* configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
	Remove elf32-mips.lo from 64 bit vectors. Update dependencies
	accordingly.
	* configure: Regenerate.
	* elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
	(irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
	(elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
	MIPS specific backend functions.
	* elf32-mips.c: Moved most code to elfxx-mips.c.
	(mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
	static.
	(mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
	(mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
	(mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
	(mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
	interface to allow selection of the right REL or RELA howto table.
	(mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
	static. Let it refuse n32 objects.
	(elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
	(elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
	(elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
	(elf32_mips_ignore_discarded_relocs): Rename from
	_bfd_elf32_mips_ignore_discarded_relocs.
	(elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
	(elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
	(elf_mips_howto_table_rela): Remove.
	* elf64-mips.c: Moved most code to elfxx-mips.c.
	(bfd_elf64_bfd_reloc_type_lookup): Make static.
	(mips_elf64_rtype_to_howto): New function.
	(mips_elf64_object_p): Likewise.
	(elf64_mips_irix_compat): Likewise.
	* elfxx-mips.c: New file containing common code merged together from
	elf32-mips.c and elf64-mips.c.
	* elfxx-mips.h: New file containing MIPS specific prototypes from
	elf-bfd.h.
	* elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
	elf_backend_mips_rtype_to_howto.
2002-04-04 07:01:27 +00:00
Alan Modra d8dce6926a * srec.c (MAXCHUNK, Chunk): Revise comments.
(srec_write_record): Correct buffer size.
	(srec_write_header): Do without intermediate buffer.
	(srec_write_section): Validate Chunk.
	(srec_write_terminator): Pass NULL instead of dummy buffer.
	(srec_write_symbols): Pass file and symbol names directly to
	bfd_bwrite so sprintf won't overflow buffer.
2002-04-04 03:05:51 +00:00
Jim Blandy bce58c0993 * configure.in: Call AC_C_INLINE.
* configure: Regenerated.
2002-04-04 00:12:41 +00:00
Alan Modra f7e6cf1d80 daily update 2002-04-04 00:00:04 +00:00
gdbadmin ab66ab6bce *** empty log message *** 2002-04-04 00:00:02 +00:00
Tom Rix fbdbf47268 Various fixes and improvements for d10v. 2002-04-03 19:44:05 +00:00
Jakub Jelinek b88a866a5a * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
PC relative relocs against hidden symbols.
	* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2002-04-03 17:42:39 +00:00
Daniel Jacobowitz 5f279fa6a9 2002-04-03 Daniel Jacobowitz <drow@mvista.com>
* lib/gdb.exp (gdb_test): Move -notransfer inside of gdb_expect.
        (gdb_expect): Remove $notransfer hack.
2002-04-03 16:17:11 +00:00
Alan Modra d7866f0459 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
LMAs, loop over segments until p_vaddr and p_memsz specify an
	extent enclosing the section.
2002-04-03 13:26:34 +00:00
Jakub Jelinek 50e60fb578 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
is smaller than maximum, round dot up to common page boundary.
2002-04-03 10:25:41 +00:00
Alan Modra 784b640dd5 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
O_logical_not>): Derive final_seg from add_symbol.
	<O_multiply..O_logical_or>: More final_seg twiddles.
2002-04-03 04:10:28 +00:00
Daniel Jacobowitz dd0fd3cee7 2002-04-02 Daniel Jacobowitz <drow@mvista.com>
* gdb.c++/classes.exp ("calling method for small class"): Match
        updated register output.
2002-04-03 01:35:23 +00:00
gdbadmin 40954583a1 *** empty log message *** 2002-04-03 00:00:33 +00:00
Alan Modra 88eaec8b86 daily update 2002-04-03 00:00:05 +00:00
Nick Clifton 9e81ee6719 Do not allow records to cross a 64K boundary - wrap if necessary. 2002-04-02 14:08:51 +00:00
Richard Henderson 5f44c186d7 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
in 32-bit mode.
2002-04-02 00:32:41 +00:00
Alan Modra d24bbf0666 daily update 2002-04-02 00:00:07 +00:00
gdbadmin 7d798d03fe *** empty log message *** 2002-04-02 00:00:03 +00:00
DJ Delorie 0c4460bb3c merge from gcc 2002-04-01 22:01:20 +00:00
Jason Thorpe d2b645005b 2002-04-01 Nathan Williams <nathanw@wasabisystems.com>
* elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one erro
which caused the returned LWP ID to always be 0.
2002-04-01 18:31:46 +00:00
Richard Henderson e36f7d5326 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
(elf32_sparc_relocate_section): Use it to figure out when to
        initialize .got entries.
        * elf64-sparc.c: Similarly.
2002-04-01 10:00:49 +00:00
Daniel Jacobowitz 2fccf04a44 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
* rs6000-tdep.c: Change #include of "bfd/libcoff.h"
        and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
2002-04-01 05:58:45 +00:00
gdbadmin 4a36419c3c *** empty log message *** 2002-04-01 00:00:32 +00:00
Alan Modra 74ebceb12b daily update 2002-04-01 00:00:06 +00:00
Mark Kettenis a5941fbf4a * NEWS: Mention gcore support on FreeBSD/i386. 2002-03-31 17:53:00 +00:00
Mark Kettenis a90cd31de1 * fbsd-proc.c: New file.
* config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
* config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
2002-03-31 17:47:17 +00:00
Mark Kettenis 2d1bfe2ed3 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
while statement.
2002-03-31 15:10:38 +00:00
Alan Modra 3b83b064b0 daily update 2002-03-31 00:00:09 +00:00
gdbadmin 651307b367 *** empty log message *** 2002-03-31 00:00:03 +00:00
Daniel Jacobowitz 1e50cda1d1 2002-03-30 Daniel Jacobowitz <drow@mvista.com>
Fix PR gdb/452
        * gdb.base/dbx.exp: Restore old definition of gdb_file_cmd
        when finished.  Make gdb_file_cmd send "exec-file" when
        appropriate.
2002-03-30 23:47:18 +00:00
Daniel Jacobowitz 24015922ff 2002-03-30 Daniel Jacobowitz <drow@mvista.com>
* gdb.base/attach.exp: Remove extra setup_xfail.
2002-03-30 18:54:38 +00:00
DJ Delorie f2160d2bd1 merge from gcc 2002-03-30 06:17:57 +00:00
gdbadmin 03c7bc89c0 *** empty log message *** 2002-03-30 00:00:03 +00:00
Jim Blandy 9eb6e5a1a5 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
unescaped newlines in string literals, but newer ones don't.  So
escape them.
2002-03-29 23:34:43 +00:00
Alan Modra f00ef9ead4 daily update 2002-03-29 23:00:07 +00:00
Michael Snyder 89743e04ff 2002-03-26 Michael Snyder <msnyder@redhat.com>
Andrew Cagney <cagney@redhat.com>

	* cli/cli-dump.c: New file.  Dump memory to file,
	restore file to memory.
	* cli/cli-dump.h: New file.
	* Makefile.in: Add rules, dependencies for cli-dump.o.
        * NEWS: Mention new commands.
2002-03-29 01:32:20 +00:00
Michael Snyder f02df580ce 2002-03-26 Michael Snyder <msnyder@redhat.com>
Andrew Cagney <cagney@redhat.com>

	* cli/cli-dump.c: New file.  Dump memory to file,
	restore file to memory.
	* cli/cli-dump.h: New file.
	* Makefile.in: Add rules, dependencies for cli-dump.o.
2002-03-29 01:22:41 +00:00
Michael Snyder 16d9dec687 2002-03-27 Michael Snyder <msnyder@redhat.com>
* gdb.texinfo: Document new commands dump, append, and restore.
2002-03-29 01:19:37 +00:00
Michael Snyder dd7dfd64a3 2002-03-26 Michael Snyder <msnyder@redhat.com>
* gdb.base/default.exp: Add tests for dump, append, and restore.
	* gdb.base/help.exp: Add tests for dump, append, and restore.
	* gdb.base/dump.exp: New file, test dump, append and restore.
	* gdb.base/dump.c: New file.
2002-03-29 01:19:11 +00:00
Michael Snyder 109f874e46 2002-03-28 Michael Snyder <msnyder@redhat.com>
* symfile.c (symbol_file_add): Move test for null symbols to later.
2002-03-29 01:09:27 +00:00
gdbadmin 35ad82f95b *** empty log message *** 2002-03-29 00:00:04 +00:00
Alan Modra 3a0bd4a71b daily update 2002-03-28 23:00:05 +00:00
DJ Delorie 7dd4d42a60 merge from gcc 2002-03-28 04:06:38 +00:00
Andrew Cagney 520f6ade4a From veksler at il.ibm.com:
* utils.c (gdb_realpath): If canonicalize_file_name fails, return
the xstrduped original path.
Fix PR gdb/417.
2002-03-28 03:43:37 +00:00
Alan Modra e92d460e59 * linker.c (link_action): Ignore duplicate warning syms.
(_bfd_generic_link_write_global_symbol): Follow warning symbol link.
	* elflink.h (elf_adjust_dynstr_offsets): Likewise.
	(elf_adjust_dynamic_symbol): Likewise.
	(elf_export_symbol): Likewise.
	(elf_link_find_version_dependencies): Likewise.
	(elf_link_assign_sym_version): Likewise.
	(elf_link_sec_merge_syms): Likewise.
	(elf_link_output_extsym): Likewise.
	(elf_gc_sweep_symbol): Likewise.
	(elf_gc_propagate_vtable_entries_used): Likewise.
	(elf_gc_smash_unused_vtentry_relocs): Likewise.
	(elf_gc_allocate_got_offsets): Likewise.
	(elf_collect_hash_codes): Likewise.
	* elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
	* elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
	(elf_hppa_remark_useless_dynamic_symbols): Likewise.
	* elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
	* elf32-arm.h (elf32_arm_discard_copies): Likewise.
	* elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
	(elf_cris_discard_excess_dso_dynamics): Likewise.
	* elf32-hppa.c (clobber_millicode_symbols): Likewise.
	(mark_PIC_calls): Likewise.
	(allocate_plt_static): Likewise.
	(allocate_dynrelocs): Likewise.
	(readonly_dynrelocs): Likewise.
	* elf32-i386.c (allocate_dynrelocs): Likewise.
	(readonly_dynrelocs): Likewise.
	* elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
	* elf32-m68k.c (elf_m68k_discard_copies): Likewise.
	* elf32-mips.c (mips_elf_output_extsym): Likewise.
	(mips_elf_sort_hash_table_f): Likewise.
	(mips_elf_check_mips16_stubs): Likewise.
	* elf32-s390.c (allocate_dynrelocs): Likewise.
	(readonly_dynrelocs): Likewise.
	* elf32-sh.c (sh_elf_discard_copies): Likewise.
	* elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
	(xstormy16_relax_plt_realloc): Likewise.
	* elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
	(elf64_alpha_output_extsym): Likewise.
	* elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
	* elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
	(mips_elf64_check_mips16_stubs): Likewise.
	(mips_elf64_output_extsym): Likewise.
	* elf64-ppc.c (func_desc_adjust): Likewise.
	(allocate_dynrelocs): Likewise.
	(readonly_dynrelocs): Likewise.
	* elf64-s390.c (allocate_dynrelocs): Likewise.
	(readonly_dynrelocs): Likewise.
	* elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
	* elf64-x86-64.c (allocate_dynrelocs): Likewise.
	(readonly_dynrelocs): Likewise.
	* elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
	* aoutx.h (aout_link_write_other_symbol): Likewise.
	* cofflink.c (_bfd_coff_write_task_globals): Likewise.
	(_bfd_coff_write_global_sym): Likewise.
	* i386linux.c (linux_tally_symbols): Likewise.
	* m68klinux.c (linux_tally_symbols): Likewise.
	* sparclinux.c (linux_tally_symbols): Likewise.
	* pdp11.c (aout_link_write_other_symbol): Likewise.
	* sunos.c (sunos_scan_dynamic_symbol): Likewise.
	* xcofflink.c (xcoff_build_ldsyms): Likewise.
	(xcoff_write_global_symbol): Likewise.

	* cofflink.c (_bfd_coff_final_link): Formatting.
	* cpu-mips.c (mips_compatible): Make static, prototype.
	* elf32-i386.c (elf_i386_check_relocs): Formatting.
	* elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
	* elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
	* elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
	(mips_elf64_final_link): Likewise.
	* elflink.h (elf_link_find_version_dependencies): Remove duplicate
	prototype.
2002-03-28 03:27:46 +00:00
Michael Snyder 48b2f8d70e 2002-03-27 Michael Snyder <msnyder@redhat.com>
* gdb.base/help.exp: Modify expect strings to reflect
	clean-ups in help messages.
2002-03-28 01:36:23 +00:00
Michael Snyder d4654627e1 2002-03-27 Michael Snyder <msnyder@redhat.com>
* breakpoint.c (_initialize_breakpoint): Clean up help string.
	* infcmd.c (_initialize_infcmd): Ditto.
	* language.c (_initialize_language): Ditto.
	* symfile.c (_initialize_symfile): Ditto.
	* top.c (_init_main): Ditto.
	* cli/cli-cmds.c (init_cli_cmds): Ditto.
2002-03-28 01:35:56 +00:00
Elena Zannoni 6be8bc0c92 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
	vector registers handling.
	(skip_prologue): Handle new AltiVec instructions.  Fill in new
	fields of frame data.
	(frame_get_saved_regs): Fill in information for AltiVec registers.
2002-03-28 00:48:41 +00:00
gdbadmin 96b0714f37 *** empty log message *** 2002-03-28 00:00:32 +00:00