Commit Graph

45104 Commits

Author SHA1 Message Date
Michael Chastain e7dc800a0c 2004-08-20 Michael Chastain <mec.gnu@mindspring.com>
* (Using the Testsuite): build != host is supported,
	but some test scripts do not support build != host.
2004-08-21 09:37:20 +00:00
Mark Kettenis 11003ae340 * gdb_ptrace.h: New file.
* infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
<sys/ptrace.h>.
(PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
(PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
(attach): Don't define PT_ATTACH.
(detach): Don't define PT_DETACH.
* Makefile.in (gdb_ptrace_h): New variable.
(infptrace.o): Update dependencies.
2004-08-21 08:56:38 +00:00
Daniel Jacobowitz ea5158d820 * elflink.c (_bfd_elf_section_already_linked): Handle
SEC_LINK_DUPLICATES_SAME_CONTENTS.
2004-08-21 01:13:22 +00:00
Alan Modra d64e52d5a6 daily update 2004-08-21 00:00:07 +00:00
gdbadmin e0ef082ca4 *** empty log message *** 2004-08-21 00:00:04 +00:00
Mark Kettenis cf38c229a1 * gdb.arch/i386-prologue.exp (skip_breakpoint): New function. Use
it to skip the breakpoints encoded in the inline assembly.
2004-08-20 22:15:03 +00:00
Michael Chastain f4b4975661 2004-08-20 Michael Chastain <mec.gnu@mindspring.com>
* Makefile.in: Add gdb.fortran.
2004-08-20 14:52:36 +00:00
Ben Elliston f89c4decd1 Fix typo in Alan Modra's 2004-08-16 entry. 2004-08-20 11:44:26 +00:00
Michael Chastain 2f193b694d 2004-08-20 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/call-sc.exp (test_scalar_returns):
	Fix cut-and-paste glitch in "Make fun return now".
2004-08-20 10:57:08 +00:00
Alan Modra 65f0bddfe1 daily update 2004-08-20 00:00:06 +00:00
gdbadmin e6867c3332 *** empty log message *** 2004-08-20 00:00:04 +00:00
Mark Mitchell e77d3d77d0 * configure.tgt (arm*-*-symbianelf*): New target.
(arm*-*-eabi*): Likewise.
2004-08-19 18:11:42 +00:00
Mark Mitchell e51dace860 * configure.in (arm*-*-symbianelf*): New target.
(arm*-*-eabi*): Likewise.
	* configure: Regenerated.
2004-08-19 18:11:00 +00:00
Mark Mitchell 49d934f15e * config.bfd (arm*-*-symbianelf*): New target.
(arm*-*-eabi*): Likewise.
2004-08-19 18:09:44 +00:00
Alan Modra 039b3fefa6 * elf64-ppc.c (ppc_get_stub_entry): Change third param to a
"struct ppc_link_hash_entry *".
	(ppc64_elf_relocate_section): Ditto for type of h.  Introduce h_elf
	to satisfy RELOC_FOR_GLOBAL_SYMBOL.
2004-08-19 08:30:16 +00:00
Jakub Jelinek 3f764659c7 * elf64-ppc.c (ppc64_elf_edit_opd): Support 16 byte long .opd
entries (where fd_aux overlaps next entry's fd_func).
	Add non_overlapping argument, use it.
	(ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, adjust_opd_syms,
	ppc64_elf_size_stubs, ppc64_elf_relocate_section,
	ppc64_elf_output_symbol_hook): Use address / 8 instead of address / 24
	as indexes into opd_sym_map/opd_adjust array.
	* elf64-ppc.h (ppc64_elf_edit_opd): Adjust prototype.

	* emultempl/ppc64elf.em (non_overlapping_opd): New variable.
	(ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
	(OPTION_NON_OVERLAPPING_OPD): Define.
	(PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
	--non-overlapping-opd option.
2004-08-19 07:47:25 +00:00
Chris Demetriou e5da76ecfd 2004-08-18 Chris Demetriou <cgd@broadcom.com>
* configure.in (mipsisa64sb1*-*-*): Add mips3d to sim_igen_machine.
        * configure: Regenerate.
2004-08-19 07:02:04 +00:00
Alan Modra 01809adfd7 daily update 2004-08-19 00:00:06 +00:00
gdbadmin 41b5f2091b *** empty log message *** 2004-08-19 00:00:03 +00:00
Thiemo Seufer f7870c8d99 * config/tc-mips.c (append_insn): Handle delay slots in branch likely
correctly.
2004-08-18 15:58:12 +00:00
Joern Rennecke a134f341e6 * gencode.c (tab): For shad snd shld, fix result for
(op1 < 0 && shift_amount == 0).
2004-08-18 11:47:15 +00:00
Alan Modra c09bdfe5c9 * elf64-ppc.c (func_desc_adjust): Give undefined dot-symbols a value
if we can look up their function descriptor in a regular file.
2004-08-18 10:11:02 +00:00
Jakub Jelinek d6afba4b7d * config/tc-ia64.c (start_unwind_section): Add linkonce_empty
argument, don't do anything if current section is not
	.gnu.linkonce.t.* and linkonce_empty is set.
	(generate_unwind_image, dot_endp): Adjust callers, call
	start_unwind_section (*, 1) if nothing will be put into the
	section.
2004-08-18 09:51:29 +00:00
Nick Clifton 271d0fc399 PR 324
(coff_link_add_symbols): Check that the comdat pointer in the coff_section_data
structure has been initialised before using it.
2004-08-18 09:44:11 +00:00
Nick Clifton e65123b72d Remove #NO_APP, accidentally committed as part of another patch. 2004-08-18 07:23:47 +00:00
Paolo Bonzini 72b2455a56 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
* Makefile.in: Regenerate.
	* configure: Regenerate.

	* Makefile.def (bootstrap-stage): Rename extra_*_flags to
	stage_*_flags.
	* Makefile.tpl (configure-[+module+], all-[+module+]): Exit
	for bootstrapped modules if toplevel bootstrap is going.
	(GCC bootstrap): Generate per-stage targets for all bootstrapped
	modules.  Adjust for changes in Makefile.def.  Enable several
	rules even in non-bootstrap mode, just to avoid peppering the
	template with unnecessary "@if/@endif gcc-bootstrap" pairs.
	(stage-[+prev+]-bubble): Remove.

	* Makefile.def (Dependencies): Depend on all-build-bison,
	all-build-flex, all-build-byacc, all-build-texinfo, rather
	than the host variations.
	* Makefile.tpl (BUILD_DIR_PREFIX): Remove.  Replace throughout
	with BUILD_SUBDIR.
	(BISON): Update for recent Bisons.
	(YACC): Fix typo.
	(cross): Depend on all-build.
	(all): Do not depend on all-build.
	(prebootstrap): Remove.
	(dep-kind): Accept separate prefixes for MODULE and ON variables.
	(Prebootstrap dependencies): Add them to the per-stage targets
	and to all-prebootstrap.
	* configure.in (build_configdirs): Always enable build_tools.
	(BUILD_DIR_PREFIX): Remove.

	* Makefile.def (gcc): Add target variable.
	(gdb, expect, guile, tk, tix): Replace with_x with extra_make_flags.
	* Makefile.tpl (Autogenerated `all-*' targets): Invoke $(TARGET-*)
	in the recursive `make', instead of hardwiring `all'.
	(Autogenerated TARGET-* variables): New.
2004-08-18 06:51:38 +00:00
Alan Modra a010d60faf PR 338
* elflink.c (bfd_elf_record_link_assignment): Add comment about
	changing bfd_link_hash_undefined to bfd_link_hash_new.
	* ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
	was already on the undefs list.
2004-08-18 02:45:43 +00:00
gdbadmin 4287095258 *** empty log message *** 2004-08-18 00:00:34 +00:00
Alan Modra 5f077b9300 daily update 2004-08-18 00:00:05 +00:00
Jim Wilson de0b4a8713 Patch from Robert Millan for knetbsd-gnu/kfreebsd-gnu.
* configure.in: In noconfigdirs check, match GNU/k*BSD with GNU/Linux
(instead of FreeBSD).
* configure: Regenerate.
2004-08-17 22:09:17 +00:00
Michael Chastain 89a237cb65 2004-08-17 Michael Chastain <mec.gnu@mindspring.com>
* configure.in: Add gdb.fortran.
	* configure: Regenerate.
	* gdb.fortran/Makefile.in: New file.
	* lib/gdb.exp (skip_fortran_tests): New procedure.
2004-08-17 16:33:28 +00:00
Alan Modra 10ca0e9543 trim off entries that came in with a merge, rev 1.245, now in ChangeLog-9103 2004-08-17 13:07:48 +00:00
Alan Modra c4e3388091 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
prefix the symbol field too.
2004-08-17 12:33:59 +00:00
Nick Clifton 329e276daf Add support for a -g switch to GAS 2004-08-17 12:19:58 +00:00
Michael Chastain 469aff8eec 2004-08-17 Michael Chastain <mec.gnu@mindspring.com>
* gdb.mi/mi-var-block.exp: Use gdb_get_line_number.  Remove
	reference to bug-gnu@prep.ai.mit.edu.
	* gdb.mi/mi-var-child.exp: Likewise.
	* gdb.mi/mi-var-cmd.exp: Likewise.
	* gdb.mi/mi-var-display.exp: Likewise.
	* gdb.mi/mi2-var-block.exp: Likewise.
	* gdb.mi/mi2-var-child.exp: Likewise.
	* gdb.mi/mi2-var-cmd.exp: Likewise.
	* gdb.mi/mi2-var-display.exp: Likewise.
2004-08-17 09:38:29 +00:00
Jakub Jelinek 90e3cdf2a9 bfd/
* elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Only define
	if not yet defined.
	* elf64-ppc.c (bfd_elf64_get_synthetic_symtab): Define.
	(synthetic_opd, synthetic_relocatable): New variables.
	(compare_symbols, compare_relocs): New helper routines.
	(ppc64_elf_get_synthetic_symtab): New function.
	* bfd.c (bfd_get_synthetic_symtab): Rename dynsyms argument
	to relsyms.
	* bfd-in2.h: Regenerated.
	* elf.c (_bfd_elf_get_synthetic_symtab): Rename dynsyms argument
	to relsyms.  Return 0 if abfd is relocatable.
binutils/
	* objdump.c (dump_bfd): For relocatable objects, pass syms instead
	of dynsyms to bfd_get_synthetic_symtab.
2004-08-17 09:07:35 +00:00
Alan Modra 7c2c850509 * elflink.h (elf_gc_sweep): Keep non-alloc, non-load sections. 2004-08-17 08:51:07 +00:00
Nick Clifton 0367ecfb78 (is_arm_mapping_symbol_name): New function - return true when a symbol name
matches the requirements for an ARM mapping symbol name.
(arm_elf_find_function): New function based on elf_find_function in elf.c but
 skipping ARM mapping symbols and including thumb function symbols.
(elf32_arm_find_nearest_line): Use arm_elf_find_function.
(elf32_arm_output_symbol_hook): Use is_arm_mapping_symbol_name.
2004-08-17 08:12:26 +00:00
Alan Modra 2441e016ac * elf64-ppc.c (ppc64_elf_branch_reloc): New function.
(ppc64_elf_howto_raw): Use ppc64_elf_branch_reloc.
	(ppc64_elf_brtaken_reloc): Here too.
2004-08-17 07:05:52 +00:00
Alan Modra 82dd044a0d * ld-elfvsb/elfvsb.exp: Cope with ppc64 dot symbols. 2004-08-17 05:39:32 +00:00
Alan Modra 35b0ce5903 * elf64-ppc.c (add_symbol_adjust): Correct mismatched function
symbol visibility.
	(ppc64_elf_check_directives): Check that we have the right hash
	table before proceeding.
2004-08-17 05:38:28 +00:00
Alan Modra 816881401e * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add "deleted_section".
(adjust_opd_syms): Attach opd syms for deleted entries to one of
	the sections that will be discarded.
2004-08-17 01:25:21 +00:00
Alan Modra 2f4a83ee59 * ld-scripts/cross1.t: Remove .opd section spec. 2004-08-17 01:18:50 +00:00
Alan Modra fb7ebd02de daily update 2004-08-17 00:00:05 +00:00
gdbadmin 149567cc8c *** empty log message *** 2004-08-17 00:00:03 +00:00
Mark Kettenis f8707cace9 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
instead of `int' if not already defined.
(call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
PTRACE_TYPE_ARG3.
* infptrace.c (call_ptrace): Revert change that replaced
PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2004-08-16 15:27:54 +00:00
Nick Clifton 2766e5e41b (macro_set_alternate): Use ISO C90 formatting. 2004-08-16 08:34:28 +00:00
Nick Clifton 4101eec8eb Sort architecture based tables alphabetically. 2004-08-16 08:25:44 +00:00
Nick Clifton 1f216d0994 altmacro.d: Allow for rest of frag being padded to an alignment boundary.
arm.exp: Run bignum test for ELF based targets only.
2004-08-16 08:15:50 +00:00
Alan Modra 80f846b670 * config/tc-ppc.c (tc_ppc_regname_to_dw2regnum <regnames>): Replace
{ "cc", 68 }, with { "cr", 70 }.
2004-08-16 03:04:47 +00:00