Commit Graph

46296 Commits

Author SHA1 Message Date
Mark Kettenis f1bc22da72 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
* infptrace.c (call_ptrace): Simply call ptrace with four
arguments.
2004-11-20 16:52:22 +00:00
Mark Kettenis e31272c3a6 * dbxread.c (process_one_symbol): Fix a few coding standard
issues.  Improve code formatting.
2004-11-20 12:38:38 +00:00
Mark Kettenis 91f54576a2 * dbxread.c: Include "gdb_string.h".
(record_minimal_symbol, read_ofile_symtab): Replace
DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
* Makefile.in (dbxread.o): Update dependencies.
2004-11-20 10:20:33 +00:00
Mark Kettenis a728960949 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
of bytes read for aligned LEB128 encodings.
2004-11-20 10:10:17 +00:00
DJ Delorie 3e0f14040c merge from gcc 2004-11-20 03:00:47 +00:00
gdbadmin ef81051b92 *** empty log message *** 2004-11-20 00:00:34 +00:00
Alan Modra 60575ce718 daily update 2004-11-19 23:00:08 +00:00
Mark Kettenis 57ac95b8fc * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
parse_and_eval_address to u_long before converting it to a pointer
type.
* i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
ps_strings from int to u_long.
* i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
u_long instead of CORE_ADDR.
2004-11-19 21:55:24 +00:00
Mark Mitchell 6b3221b47a * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
(earmelf_linux_eabi.c): New target.
	* configure.tgt (arm*-*-linux-gnueabi): Handle it.
	* emulparams/armelf_linux_eabi.sh: New file.
	* Makefile.in: Regenerated.
2004-11-19 19:28:40 +00:00
Alan Modra 5da8bf1b0b * or32-opc.c (debug): Warning fix.
* po/POTFILES.in: Regenerate.
2004-11-19 12:38:56 +00:00
Alan Modra ca4f237785 * maxq-dis.c: Formatting.
(print_insn): Warning fix.
2004-11-19 12:34:13 +00:00
Alan Modra f5c7edf4d6 include/opcode/
* msp430.h (struct rcodes_s, MSP430_RLC, msp430_rcodes,
	struct hcodes_s, msp430_hcodes): Move to gas/config/tc-msp430.c.
gas/
	* config/tc-msp430.c (struct rcodes_s, MSP430_RLC, msp430_rcodes,
	struct hcodes_s, msp430_hcodes): From include/opcode/msp430.h.
2004-11-19 12:28:03 +00:00
Alan Modra a4528eebc0 * config/obj-coff.c (c_dot_file_symbol): Add "app" param.
(coff_adjust_symtab): Adjust call.
	(crawl_symbols): Likewise.
	* config/obj-coff.h (c_dot_file_symbol): Add "app" param.
	(obj_app_file): Adjust.
2004-11-19 12:20:25 +00:00
Alan Modra de52dba4ab * elf32-arm.c (elf32_arm_finish_dynamic_sections): Warning fix.
* elf32-iq2000.c (iq2000_reloc_type_lookup): C90 function decl.
	* nlmcode.h (nlm_write_object_contents): Warning fix.
2004-11-19 11:58:02 +00:00
Nick Clifton 9cd6d51a56 PR 518
Update the descriptions of the ORIGIN and LENGTH fields in the MEMORY command,
to explicitly state that symbols cannot be used in their expressions.
2004-11-19 09:38:04 +00:00
Nick Clifton 3ec5763260 Add ORIGIN and LENGTH linker script operators. 2004-11-19 09:31:55 +00:00
Bob Wilson 288f74fae9 * elf32-xtensa.c (ebb_propose_action): Fix argument order. 2004-11-19 00:28:58 +00:00
gdbadmin c457f63246 *** empty log message *** 2004-11-19 00:00:31 +00:00
Alan Modra 36ed297bac daily update 2004-11-18 23:00:06 +00:00
Mark Kettenis ceddaf06ac * dbxread.c (process_one_symbol): Do not adjust address of first
N_SLINE stab for a function for code generated by non-GCC
compilers.
2004-11-18 22:37:22 +00:00
Kevin Buettner 915a2d21dd * solib-null.c: New file. 2004-11-18 17:23:05 +00:00
Nick Clifton 444bf5f39e Enable bfd_assembler by default for the MAXQ port.
Adjust the testsuite expected disassemblies to take this into account.
2004-11-18 16:20:11 +00:00
Richard Earnshaw 15f5e61fb4 In last change: macros not rules. 2004-11-18 10:56:28 +00:00
Richard Earnshaw 08cd376098 * Make-common.in (sim-*_h): Add rules for all sim headers. Also
add sub-dependencies for other sim files that they include.
(sim_main_headers): Use sim-*_h rules.
(sim-load.o): Depend on sim-basics_h, not sim_main_headers.
2004-11-18 10:21:39 +00:00
Andrew Cagney 92790ee734 2004-11-17 Andrew Cagney <cagney@gnu.org>
* MAINTAINERS: Drop MIPS and remote.
2004-11-18 00:16:33 +00:00
gdbadmin 90f90d2cef *** empty log message *** 2004-11-18 00:00:03 +00:00
Alan Modra 4a709ceef9 daily update 2004-11-17 23:00:07 +00:00
Daniel Jacobowitz b7693d0213 bfd/
* elf32-arm.c (PLT_THUMB_STUB_SIZE): Define.
	(elf32_arm_plt_thumb_stub): New.
	(struct elf32_arm_link_hash_entry): Add plt_thumb_refcount
	and plt_got_offset.
	(elf32_arm_link_hash_traverse): Fix typo.
	(elf32_arm_link_hash_table): Add obfd.
	(elf32_arm_link_hash_newfunc): Initialize new fields.
	(elf32_arm_copy_indirect_symbol): Copy plt_thumb_refcount.
	(elf32_arm_link_hash_table_create): Initialize obfd.
	(record_arm_to_thumb_glue): Mark the glue as a local ARM function.
	(record_thumb_to_arm_glue): Mark the glue as a local Thumb function.
	(bfd_elf32_arm_get_bfd_for_interworking): Verify that the
	interworking BFD is not dynamic.
	(bfd_elf32_arm_process_before_allocation): Handle R_ARM_PLT32.  Do
	not emit glue for PLT references.
	(elf32_arm_final_link_relocate): Handle Thumb functions.  Do not
	emit glue for PLT references.  Support the Thumb PLT prefix.
	(elf32_arm_gc_sweep_hook): Handle R_ARM_THM_PC22 and
	plt_thumb_refcount.
	(elf32_arm_check_relocs): Likewise.
	(elf32_arm_adjust_dynamic_symbol): Handle Thumb functions and
	plt_thumb_refcount.
	(allocate_dynrelocs): Handle Thumb PLT references.
	(elf32_arm_finish_dynamic_symbol): Likewise.
	(elf32_arm_symbol_processing): New function.
	(elf_backend_symbol_processing): Define.
opcodes/
	* arm-dis.c (WORD_ADDRESS): Define.
	(print_insn): Use it.  Correct big-endian end-of-section handling.
gas/testsuite/
	* gas/arm/mapping.d: Expect F markers for Thumb code.
	* gas/arm/unwind.d: Update big-endian pattern.
ld/
	* emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
	a dynamic object for stubs.
ld/testsuite/
	* ld-arm/mixed-app.d, ld-arm/mixed-app.r, ld-arm/mixed-app.s,
	ld-arm/mixed-app.sym, ld-arm/mixed-lib.d, ld-arm/mixed-lib.r,
	ld-arm/mixed-lib.s, ld-arm/mixed-lib.sym, ld-arm/arm-dyn.ld,
	ld-arm/arm-lib.ld: New files.
	* ld-arm/arm-app-abs32.d, ld-arm/arm-app-abs32.r, ld-arm/arm-app.d,
	ld-arm/arm-app.r, ld-arm/arm-lib-plt32.d, ld-arm/arm-lib-plt32.r,
	ld-arm/arm-lib.d, ld-arm/arm-lib.r, ld-arm/arm-static-app.d,
	ld-arm/arm-static-app.r: Update for big-endian.
	* ld-arm/arm-elf.exp: Run the new tests.
2004-11-17 17:50:28 +00:00
Nick Clifton e2cb164148 Run the relax test. 2004-11-17 15:31:46 +00:00
gdbadmin 4f151830a9 *** empty log message *** 2004-11-17 00:00:02 +00:00
Alan Modra 5a0a6f7a13 daily update 2004-11-16 23:00:07 +00:00
Hans-Peter Nilsson 27509da04b Fix consistenco; it's triplets, not triples 2004-11-16 16:22:09 +00:00
Hans-Peter Nilsson 310ca70ce2 * lib/sim-defs.exp (run_sim_test): Support "xfail" and "kfail". 2004-11-16 16:20:32 +00:00
Andreas Schwab 99b5727687 * Makefile.in (defines.h): Depend on tmp-defines.
(hw.c hw.h): Depend on tmp-hw.
	(pk.h): Depend on tmp-pk.
2004-11-16 10:21:19 +00:00
Richard Sandiford 353057a53c * elf-bfd.h (eh_cie_fde): Add new fields: add_augmentation_size and
add_fde_encoding.  Remove need_relative.
	* elf-eh-frame.c (extra_augmentation_string_bytes)
	(extra_augmentation_data_bytes, size_of_output_cie_fde): New functions.
	(_bfd_elf_discard_section_eh_frame): Consider changing the FDE encoding
	in cases where the CIE has no existing 'R' augmentation.  Use
	size_of_output_cie_fde when assigning offsets.  Use the final offset
	as the new section size.
	(_bfd_elf_eh_frame_section_offset): Remove need_relative handling.
	Account for any extra augmentation bytes in the returned offset.
	(_bfd_elf_write_section_eh_frame): Rework so that the entries are
	moved before being modified.  Pad growing entries with DW_CFA_nops.
	Add 'z' and 'R' augmentations as directed by add_augmentation_size
	and add_fde_encoding.
2004-11-16 10:16:30 +00:00
Mark Mitchell b32d3aa2a0 * elf32-arm.c (elf32_arm_relocate_section): Use
arm_real_reloc_type.
2004-11-16 10:08:00 +00:00
Richard Sandiford 5d41f0b6e5 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Return early
for discard relocations; don't add an R_MIPS_NONE to the main body
	of .rel.dyn.
2004-11-16 09:54:10 +00:00
Hans-Peter Nilsson 1d72487d99 * sim-config.c (sim_config): Recognize when a bfd has unspecified
endian information.
2004-11-16 07:16:57 +00:00
Hans-Peter Nilsson 5eba45c188 * lib/sim-defs.exp (run_sim_test): Make multiple "output"
specifications concatenate, not override.
2004-11-16 07:06:17 +00:00
Hans-Peter Nilsson 1afbf1866f * Make-common.in (sim-load.o): Depend on $(sim_main_headers) and
$(remote_sim_h) too.
	(sim_main_headers): Add sim-utils.h.
2004-11-16 07:02:26 +00:00
DJ Delorie 57d1eb1a07 2004-11-15 Kelley Cook <kcook@gcc.gnu.org>
* install-sh, compile: Import from automake.
* config.guess, config.sub:  Import from savannnah.
2004-11-16 01:18:39 +00:00
gdbadmin c98fd1d524 *** empty log message *** 2004-11-16 00:00:32 +00:00
Paul Brook fc0e6df64d bfd/
* elf-bfd.h (_bfd_elf_slurp_version_tables): Update prototype.
	* elf.c (_bfd_elf_print_private_bfd_data): Pass extra argument.
	(_bfd_elf_slurp_version_tables): Add extra argument.  Create extra
	default version definition for unversioned symbols.
	* elfcode.h (elf_slurp_symbol_table): Pass extra argument.
	* elflink.c (elf_link_add_object_symbols): Pass extra argument to
	_bfd_elf_slurp_version_tables.  Set default version for unversioned
	imported symbols.
include/
	* bfdlink.h (bfd_link_info): Add default_imported_symver.
ld/
	* ld.texinfo: Document --default-imported-symver.
	* ldmain.c (main): Set link_info.default_imported_symver.
	* lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
	(ld_options): Add --default-imported-symver.
	(parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
2004-11-15 23:21:27 +00:00
Alan Modra 2e8d14f482 daily update 2004-11-15 23:00:07 +00:00
Andrew Cagney 0c16dd26a8 2004-11-15 Andrew Cagney <cagney@gnu.org>
* findvar.c (value_of_register): Set the frame ID.
	* value.c (value_primitive_field): Copy the frame ID.
	* valops.c (value_assign): Simplify lval_register case, there's
	always a frame.
2004-11-15 22:17:59 +00:00
Nick Clifton 4bd1d37b6f Added quotes around macro arguments so that they will work with newer versions
of guile.
2004-11-15 14:30:12 +00:00
Paul Brook b23e50e23e * elflink.c (elf_link_add_object_symbols): Don't assume version
indices are consecutive.
2004-11-15 12:39:01 +00:00
Richard Sandiford f4a6705cf8 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Deal with
composite relocations against the personality data.
2004-11-15 09:09:13 +00:00
gdbadmin 62d5693236 *** empty log message *** 2004-11-15 00:00:01 +00:00
Alan Modra c87cb54921 daily update 2004-11-14 23:00:04 +00:00