Commit Graph

45673 Commits

Author SHA1 Message Date
Mark Mitchell 2a1b9a480a * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Make .rel.plt
relocations use a virtual address, not a section offset.
2004-10-13 03:09:28 +00:00
Alan Modra 09c112daa3 PR 44
* ldcref.c (check_section_sym_xref): Delete.
	(check_local_sym_xref): New function.
	(check_nocrossrefs): Adjust call.
2004-10-13 02:28:01 +00:00
Alan Modra 05d073081f daily update 2004-10-13 00:00:06 +00:00
gdbadmin 43d3aec099 *** empty log message *** 2004-10-13 00:00:03 +00:00
Alan Modra 1af699f475 PR 44
* emultempl/pe.em (struct orphan_save): Add os_tail.
	(place_orphan): Backport assorted fixes from elf32.em.
2004-10-12 23:44:57 +00:00
DJ Delorie ac0fa625cd merge from gcc
2004-10-12  Kelley Cook  <kcook@gcc.gnu.org>
	* configure.in (*-*-cygwin*): Supress warning if newlib not present.
	* configure: Regenerate.
2004-10-12 23:40:03 +00:00
Bob Wilson b08b507153 bfd ChangeLog
* elf32-xtensa.c (elf_xtensa_get_private_bfd_flags): Delete.
	(narrow_instruction, widen_instruction): Remove unnecessary calls to
	xtensa_format_encode.
	(ebb_propose_action): Inline call to ebb_add_proposed_action.
	(ebb_add_proposed_action): Delete.

gas ChangeLog

	* config/tc-xtensa.c (xtensa_frequency_pseudo): Use set_subseg_freq.
	(is_entry_opcode, is_movi_opcode, is_the_loop_opcode, is_jx_opcode,
	is_windowed_return_opcode): Delete.
	(xtensa_frob_label): Use get_subseg_target_freq.
	(md_assemble): Inline call to is_entry_opcode.
	(xtensa_handle_align): Inline call to get_frag_is_literal.
	(relaxation_requirements): Inline call to is_jx_opcode.
	(emit_single_op): Inline call to is_movi_opcode.
	(xg_assemble_vliw_tokens): Inline calls to get_frag_is_insn,
	get_frag_is_no_transform, is_entry_opcode, and
	set_frag_is_specific_opcode.  Use get_subseg_total_freq.
	(xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags,
	xtensa_fix_close_loop_end_frags, relax_frag_immed, convert_frag_immed):
	Inline calls to get_frag_is_no_transform.
	(next_instrs_are_b_retw): Inline call to is_windowed_return_opcode.
	(xtensa_fix_short_loop_frags): Inline calls to is_the_loop_opcode and
	get_frag_is_no_transform.
	(convert_frag_immed_finish_loop): Inline calls to get_expression_value
	and set_frag_is_no_transform.
	(get_expression_value): Delete.
	(subseg_map struct): Rename cur_total_freq to total_freq.  Rename
	cur_target_freq to target_freq.
	(get_subseg_info): Split out code to create a new map entry into ...
	(add_subseg_info): ... this new function.
	(get_last_insn_flags): Check if get_subseg_info succeeded.
	(set_last_insn_flags): Call add_subseg_info if needed.
	(get_subseg_total_freq, get_subseg_target_freq, set_subseg_freq): New.
	(xtensa_reorder_segments): Compute last_sec while counting sections.
	Remove call to get_last_sec.
	(get_last_sec): Delete.
	(cache_literal_section): Inline call to retrieve_literal_seg and its
	callees, seg_present and add_seg_list.
	(retrieve_literal_seg, seg_present, add_seg_list): Delete.
	(get_frag_is_insn, get_frag_is_no_transform,
	set_frag_is_specific_opcode, set_frag_is_no_transform): Delete.
	* config/tc-xtensa.h (MAX_SLOTS): Reduce from 31 to 15.
2004-10-12 23:05:32 +00:00
Jeff Johnston e1923096a1 2004-10-12 Jeff Johnston <jjohnstn@redhat.com>
* gdb.threads/schedlock.c: Add comment markers to use to find
        line numbers.
        * gdb.threads/schedlock.exp: Adjust regex to handle the new
        comments.
        * gdb.threads/watchthreads.exp: Use gdb_get_line_number to find
        breakpoint lines.
2004-10-12 22:49:17 +00:00
Mark Kettenis 1b9445c221 * sparc-nat.c: Include "inf-ptrace.h".
(sparc_target): New function.
* sparc-nat.h: Update copyright year.
(sparc_target): New prototype.
* sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
(_initialize_sparcnbsd_nat): Construct and add target vector.
* sparc64nbsd-nat.c: Include "target.h".
(_initialize_sparc64nbsd_nat): Construct and add target vector.
* Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
Update dependencies.
* config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
inftarg.o, add inf-ptrace.o.
* config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
inftarg.o, add inf-ptrace.o and bsd-kvm.o.
(NAT_FILE): Set to nm-bsd.h.
(LOADLIBES): New variable.
* config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
infarg.o, add inf-ptrace.o.
* config/sparc/nm-nbsdaout.h: Remove file.
* config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
* config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
* config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
2004-10-12 22:18:55 +00:00
Andrew Cagney d52fe014d1 2004-10-12 Andrew Cagney <cagney@gnu.org>
* gdbint.texinfo (Versions and Branches): New chapter.
	(Releasing GDB): Delete "Versions and Branches" section.
	(Top): Add "Versions and Branches".
2004-10-12 19:14:31 +00:00
Bob Wilson 7fa3d080a2 bfd ChangeLog
* elf32-xtensa.c: Use ISO C90 formatting.

gas ChangeLog

	* config/tc-xtensa.c: Use ISO C90 formatting.
	* config/tc-xtensa.h: Likewise.
	* config/xtensa-istack.h: Likewise.
	* config/xtensa-relax.c: Likewise.
	* config/xtensa-relax.h: Likewise.

ld ChangeLog

	* emultempl/xtensaelf.em: Use ISO C90 formatting.

opcodes ChangeLog

	* xtensa-dis.c: Use ISO C90 formatting.
2004-10-12 18:33:17 +00:00
Daniel Jacobowitz ec8ba2c9a1 * gdb.dwarf2/dw2-basic.exp: Run on Hurd also. 2004-10-12 15:55:06 +00:00
Paul Brook 3656d5e3c7 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Rephrase error
message.
2004-10-12 14:51:42 +00:00
Daniel Jacobowitz 0eb3658b8f * configure.in: Add gdb.dwarf2.
* configure: Regenerated.
	* Makefile.in: Add gdb.dwarf2.
	* gdb.dwarf2/Makefile.in, gdb.dwarf2/dw2-basic.S,
	gdb.dwarf2/dw2-basic.exp, gdb.dwarf2/main.c,
	gdb.dwarf2/file1.txt: New files.
2004-10-12 14:41:42 +00:00
Paul Brook 8cb5156692 2004-10-12 Paul Brook <paul@codesourcery.com>
bfd/
	* elf32-arm.h: Support EABI version 4 objects.
binutils/
	* readelf.c (decode_ARM_machine_flags): Support EABI version 4.
gas/
	* config/tc-arm.c (md_begin): Change EF_ARM_EABI_VER3 to
	EF_ARM_EABI_VER4.
	(arm_eabis): Ditto.
	* doc/c-arm.texi: Document that we actually support -meabi=4, not
	-meabi=3.
include/
	* elf/arm.h (EF_ARM_EABI_VER4): Define.
2004-10-12 14:17:08 +00:00
Mark Kettenis 06c2338dfb * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
"fopen-same.h".  Update comment.
2004-10-12 10:06:14 +00:00
Alan Modra 1abc85973a PR 325
* cpu-i386.c (bfd_x86_64_arch_intel_syntax): Place last in chain.
	Don't mark as default.
	(bfd_x86_64_arch): Don't mark as default.
2004-10-12 08:13:46 +00:00
Alan Modra 9e66c9426b * elflink.c (enum action_discarded): New.
(elf_section_complain_discarded): Delete.
	(elf_action_discarded): New function subsuming the above and also
	controlling reloc behaviour.
	(elf_link_input_bfd): Use it.
2004-10-12 02:27:53 +00:00
Alan Modra a4e749e942 daily update 2004-10-12 00:00:18 +00:00
gdbadmin 3486e91c62 *** empty log message *** 2004-10-12 00:00:03 +00:00
Mark Kettenis 3303a2761a * i386gnu-nat.c: Include "gdb_string.h".
(fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
registers when the floating-point state isn't initialized.
* Makefile.in (i386gnu-nat.o): Update dependencies.
2004-10-11 20:03:55 +00:00
Bob Wilson 653cfe8544 * doc/as.texinfo (VTableEntry, VTableInherit): Add "directive" to index
entries.
        (Acknowledgements): Use "GAS" instead of AS variable.
2004-10-11 16:39:34 +00:00
David Anderson 04c663e3c6 2004-10-11 David Anderson <davea@sgi.com>
* regcache.c (regcache_raw_read): Comment was missing "to".
        Extraneous ' removed.
        * gdb_thread_db.h (struct td_thrinfo): ti_lid field
        comment now describes use.
2004-10-11 16:35:28 +00:00
Orjan Friberg a5f6c8f5a8 2004-10-11 Orjan Friberg <orjanf@axis.com>
* cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
	(cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
	(cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
	(cris_sigtramp_frame_sniffer): New functions.
	(cris_gdbarch_init): Hook in signal trampoline unwinder.
	(cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
	(cris_gdbarch_init): Hook in Dwarf-2 unwinder.
	(struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
	(cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
	command.
	(cris_version_update): Remove, replace with ...
	(set_cris_version): New function.
	(struct gdbarch_tdep, cris_mode, cris_mode_update)
	(cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
	(_initialize_cris_tdep): Remove CRIS mode command.
	(cris_fpless_backtrace, _initialize_cris_tdep): Remove CRIS command for
	framepointer-less backtrace.
	(cris_scan_prologue): Fix prologue scanning limit.
	(cris_register_type): Update to reflect actual registers.
	(cris_register_bytes_ok) Remove.
	(cris_gdbarch_init): Remove support for CRIS v8 and v9. Remove
	set_gdbarch_deprecated_register_size,
	set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
2004-10-11 15:02:20 +00:00
Jakub Jelinek 563f4125b7 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
getline for portability.
2004-10-11 14:42:30 +00:00
Jakub Jelinek d3989512d9 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
(gld${EMULATION_NAME}_parse_ld_so_conf,
	gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
	(gld${EMULATION_NAME}_check_ld_so_conf): Use them.
2004-10-11 14:12:11 +00:00
Jakub Jelinek 7f1204bb4f * elf.c (bfd_section_from_shdr): Handle SHT_GNU_LIBLIST.
(special_sections): Add .gnu.liblist and .gnu.conflict.
	(assign_section_numbers): Handle SHT_GNU_LIBLIST.
2004-10-11 13:48:36 +00:00
Alan Modra 87e5235d04 PR 233
* elflink.c (elf_link_input_bfd): Try harder to support
	relocations against symbols in removed linkonce sections.
2004-10-11 13:29:01 +00:00
Orjan Friberg a271cc337c 2004-10-11 Orjan Friberg <orjanf@axis.com>
* gdb.threads/bp_in_thread.exp: Use runto_main and "continue" instead
	of "run", since the latter doesn't work with remote targets.  Adjust
	the breakpoint numbering accordingly.
	* gdb.threads/pthread_cond_wait.exp: Ditto.
2004-10-11 12:22:33 +00:00
Alan Modra 029446c42d * elflink.c (elf_link_input_bfd): Revert PR 354 change. 2004-10-11 09:17:13 +00:00
Alan Modra 83ef079838 * objdump.c (dump_symbols): Fix thinko last change. Improve error
messages.
2004-10-11 08:18:43 +00:00
Andrew Cagney 7710980469 2004-10-10 Andrew Cagney <cagney@gnu.org>
* ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
	comment.
2004-10-11 05:26:25 +00:00
Alan Modra 2ad770c380 PR 354
* elflink.c (elf_link_input_bfd): Check that relocs in SEC_ALLOC
	sections do not reference symbols in non-SEC_ALLOC sections.
2004-10-11 04:54:27 +00:00
Alan Modra 6c0c5b1e5d PR 423
* ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
	rejected when linking statically.
2004-10-11 02:40:47 +00:00
Joel Brobecker 25652d4f22 * mips-tdep.c (mips16_scan_prologue): Remove redundant code. 2004-10-11 02:27:14 +00:00
Joel Brobecker 1e05a7bfcf * mips-tdep.c (mips16_scan_prologue): Renames
mips16_heuristic_proc_desc. Update comment.
        (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
        (heuristic_proc_desc): Update calls to the 2 functions above.
2004-10-11 02:17:53 +00:00
Joel Brobecker c68a414253 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
Update comments. Also immediately return empty cache when the start
        address of our function could not be found.
        (mips_insn32_frame_cache): Likewise.
2004-10-11 02:04:23 +00:00
Alan Modra 1da212d6fb PR 437
* elflink.c (elf_link_sort_relocs): Don't bomb on unusual sections.
	(_bfd_elf_link_omit_section_dynsym): Formatting.
2004-10-11 01:13:10 +00:00
Joel Brobecker 0fce082197 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
(mips_insn16_frame_cache): Pass frame cache in call to
        heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
        Remove code that became redundant as a consequence.
        (mips32_heuristic_proc_desc): No longer compute a fake
        procedure descriptor. Compute the full frame cache instead.
        Some minor comment reformatting.
2004-10-11 01:00:58 +00:00
Alan Modra ed7aa6d6f8 daily update 2004-10-11 00:00:06 +00:00
gdbadmin 816520aed2 *** empty log message *** 2004-10-11 00:00:02 +00:00
Jim Blandy b672553e43 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
reader, tracing bytecode stuff): Remove self.
2004-10-10 22:15:37 +00:00
Mark Kettenis cc9784b602 * sparc64-linux-tdep.c: Update copyright year. Don't include
"solib-svr4.h".
(sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
(sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
* Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2004-10-10 19:50:59 +00:00
Mark Kettenis ee8aef2357 * sparc-linux-tdep.c: Update copyright year.
(sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
to struct frame_info *.  Use safe_frame_unwind_memory instead of
deprecated_read_memory_nobpt.
(sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
Change argumen from CORE_ADDR to struct frame_info *.  Adjust for
changed signature of sparc_linux_sigtramp_start.
(sparc32_linux_pc_in_sigtramp): Remove function.
(sparc32_linux_sigtramp_p): New function.
(sparc32_linux_sigtramp_frame_sniffer): Use
sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
2004-10-10 17:56:12 +00:00
Mark Kettenis bc73f8cc48 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
Remove function.
(sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2004-10-10 16:25:16 +00:00
Mark Kettenis a22495427e * ada-lang.c (lim_warning): Re-implement as a varargs function.
(decode_packed_array_type, value_subscript_packed)
(ada_evaluate_subexp, to_fixed_range_type): Remove redundant
argument in call to lim_warning.
2004-10-10 16:03:23 +00:00
Mark Kettenis 9cc52bdeb4 * configure.in: Really disable the TUI if an enhanced curses
library isn't found.
* configure: Regenerate.
2004-10-10 15:55:49 +00:00
Alan Modra f12123c0d5 * libbfd-in.h (BFD_ASSERT, BFD_FAIL): Wrap macro body in do while.
* libbfd.h: Regnerate.
	* elf32-cris.c: Add missing semicolon to BFD_ASSERTs.
	* elf32-frv.c: Likewise.
	* elf32-m32r.c: Likewise.
	* elf32-ppc.c: Likewise.
	* elf64-hppa.c: Likewise.
	* elfxx-ia64.c: Likewise.
	* opncls.c: Likewise.
2004-10-10 13:58:05 +00:00
Alan Modra 3472e2e999 * elf-bfd.h (struct eh_frame_hdr_info): Add offsets_adjusted.
* elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Adjust
	offsets stored in struct eh_cie_fde entries before doing other
	work.
2004-10-10 13:02:01 +00:00
Alan Modra fda3ecf23f * elf-bfd.h (struct eh_cie_fde): Add cie_inf, remove sec.
(struct eh_frame_hdr_info): Add last_cie_inf, remove last_cie_offset.
	* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete code
	setting offsets for removed CIEs.  Don't set "sec", instead set
	cie_inf for FDEs.  Keep a pointer to last struct eh_cie_fde for a
	CIE in hdr_info.  Only set make_relative and make_lsda_relative
	for CIEs.  Use pointers rather than array indices.
	(_bfd_elf_eh_frame_section_offset): Test/set make_relative,
	make_lsda_relative, need_* on cie_inf for FDEs.
	(_bfd_elf_write_section_eh_frame): Adjust offset and new_offset for
	section output_offset.  Delete cie_offset, instead use cie_inf
	pointer to CIE entry.  Use need_relative and need_lsda_relative on
	CIE entry for FDEs.  Use pointers rather than array indices.
2004-10-10 07:58:07 +00:00