Commit Graph

45920 Commits

Author SHA1 Message Date
Alan Modra 2bb2d727c1 * budemang.c (demangle): Handle "@plt" suffix. 2004-10-18 07:08:52 +00:00
Alan Modra 40d98813d0 daily update 2004-10-18 00:00:06 +00:00
gdbadmin febd16c23a *** empty log message *** 2004-10-18 00:00:02 +00:00
Alan Modra e814958604 daily update 2004-10-17 00:00:06 +00:00
gdbadmin 17a20941ba *** empty log message *** 2004-10-17 00:00:02 +00:00
Daniel Jacobowitz b58f81aef6 bfd/
* bfd-in2.h: Regenerate.
	* bfd.c (struct bfd): Add no_export.
	* elflink.c (elf_link_add_object_symbols): Handle no_export.
ld/
	* ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
	(check_excluded_libs): New.
	(load_symbols): Call check_excluded_libs.
	* ldlang.h (add_excluded_libs): New prototype.
	* emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
	(gld${EMULATION_NAME}_add_options): Add --exclude-libs.
	(gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
	* ld.texinfo (Command Line Variables): Document --exclude-libs.
	(Options Specific to i386 PE Targets): Remove --exclude-libs.
ld/testsuite/
	* ld-elf/exclude1.s, ld-elf/exclude2.s, ld-elf/exclude.exp: New.
2004-10-16 18:13:54 +00:00
Daniel Jacobowitz fd5008162e * linux-i386-low.c (ps_get_thread_area): New.
* linux-x86-64-low.c (ps_get_thread_area): New.
	* linux-low.c: Include <sys/syscall.h>.
	(linux_kill_one_process): Don't kill the first thread here.
	(linux_kill): Kill the first thread here.
	(kill_lwp): New function.
	(send_sigstop, linux_send_signal): Use it.
	* proc-service.c: Clean up #ifdefs.
	(fpregset_info): Delete.
	(ps_lgetregs): Update and enable implementation.
	(ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
	implementations.
	* remote-utils.c (struct sym_cache, symbol_cache): New.
	(input_interrupt): Print a clearer message.
	(async_io_enabled): New variable.
	(enable_async_io, disable_async_io): Use it.  Update comments.
	(look_up_one_symbol): Use the symbol cache.
	* thread-db.c (thread_db_look_up_symbols): New function.
	(thread_db_init): Update comments.  Call thread_db_look_up_symbols.
2004-10-16 17:42:00 +00:00
Daniel Jacobowitz f6de3c42a3 * configure.in: Test for -rdynamic.
* configure: Regenerated.
	* Makefile (INTERNAL_LDFLAGS): New.
	(gdbserver, gdbreplay): Use it.
2004-10-16 16:18:54 +00:00
Joel Brobecker bc5f45f8ff * dwarf2read.c (set_cu_language): Set language to Ada for
DW_LANG_Ada83 and DW_LANG_Ada95.
2004-10-16 00:41:00 +00:00
Alan Modra a872aebf0a daily update 2004-10-16 00:00:07 +00:00
gdbadmin 493d1ce280 *** empty log message *** 2004-10-16 00:00:04 +00:00
Michael Chastain 2941da8cd7 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
From Andreas Schwab <schwab@suse.de>:
	* Makefile.in (.y.c, .l.c.): Fix the substitutions for
	for xmalloc and xrealloc.
2004-10-15 16:17:34 +00:00
Andrew Cagney 34a17005a8 2004-10-15 Andrew Cagney <cagney@gnu.org>
* ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
	* inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
	* Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
	Update dependencies.
2004-10-15 13:29:33 +00:00
Paul N. Hilfinger 714e53abda * ada-lang.c (ada_lookup_symbol): Correct comment.
(ada_evaluate_subexp): Change error message for
OP_FUNCALL case so as not to indicate an internal error.

From Joel Brobecker; committed by Paul Hilfinger.
* ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
type sizes in XVE/XVU types, and emit a warning when that happens,
instead of rounding up the size of the resulting type.
Some minor reformatting.
(ada_is_aligner_type): Do not consider a type as an aligner type
if there is a corresponding XVS type as well.
(ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
have several levels of pointer indirection to the array.

From Jerome Guitton; committed by Paul Hilfinger.
* ada-lang.c (check_size): New function.
(coerce_unspec_val_to_type): call check_size to make sure
that the object size is reasonable.
(ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
Implements the case when we get a reference when we evaluate
the expression of one of the bounds of the slice.
(ada_value_struct_elt): when a packed array field is
a reference, use ada_coerce_ref to dereference it; use
ada_value_ind only if it is a pointer.
2004-10-15 09:12:24 +00:00
Joel Brobecker 296391227b * mips-tdep.c (mips32_scan_prologue): Move the implementation up
a bit to avoid the necessity of an advance declaration. Remove
        declaration.
        (set_reg_offset): Move implemenation up.
        (mips16_get_imm): Likewise.
        (mips16_scan_prologue): Likewise.
        (reset_saved_regs): Likewise.
        (mips32_scan_prologue): Likewise.
2004-10-15 07:25:04 +00:00
Joel Brobecker a65bbe4404 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
Remove sp as a parameter, compute it internally instead. Move
        prologue scanning limit from heuristic_proc_desc to here.
        (mips16_scan_prologue): Likewise.
        (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
        by call to mips16_scan_prologue.
        (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
        by call to mips32_scan_prologue.
        (heuristic_proc_desc): Remove code that's no longer necessary.
        Update calls to mips16_scan_prologue and mips32_scan_prologue.
        (mips_skip_prologue): Update calls to mips16_scan_prologue
        and mips32_scan_prologue.
2004-10-15 07:09:10 +00:00
Alan Modra c468c8bcab * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
failing link script assert.
2004-10-15 06:00:15 +00:00
Alan Modra 95c148b400 * ldctor.c (ldctor_add_set_entry): Fix comment typo. 2004-10-15 05:54:11 +00:00
Alan Modra 3c55da702a * Makefile.am: Run "make dep-am"
* Makefile.in: Regenerate.
2004-10-15 05:49:33 +00:00
Alan Modra 7d3f158fa8 * config.bfd: Whitespace cleanup.
* Makefile.am: Run "make dep-am"
	* Makefile.in: Regenerate.
2004-10-15 05:47:11 +00:00
Jakub Jelinek 6d2cd2108d * elflink.c (struct already_linked_section): Removed.
(try_match_symbols_in_sections, already_linked): Removed.
	(_bfd_elf_section_already_linked): Skip ^\.gnu\.linkonce\.[^.]*\.
	prefix of section names when finding already_linked_table
	chain.  Compare section names.  Instead of calling already_linked,
	do it inline and only for sections in the same already_linked_list.
2004-10-15 05:19:19 +00:00
Joel Brobecker 1c645fec9f * mips-tdep.c (mips16_scan_prologue): Merge code from
mips16_skip_prologue.  Now return the address of the first
        instruction past the function prologue.
        (mips16_skip_prologue): Remove, no longer necessary.
        (mips_skip_prologue): Replace call to mips16_skip_prologue
        by call to mips16_scan_prologue.
2004-10-15 04:29:23 +00:00
Alan Modra 391df1c063 * ld-crx/reloc-num8.d: Adjust for changed orphan placement.
* ld-crx/reloc-num16.d: Likewise.
	* ld-crx/reloc-num32.d: Likewise.
	* ld-scripts/provide-2.t: Start .data at 0x2000.
	* ld-scripts/provide-2.d: Adjust.
2004-10-15 00:27:12 +00:00
Alan Modra e25e99ac83 daily update 2004-10-15 00:00:05 +00:00
gdbadmin b7987335ca *** empty log message *** 2004-10-15 00:00:01 +00:00
Alan Modra 92e4ec35d9 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Add "info"
parameter.  If called after _bfd_elf_write_section_eh_frame,
	don't allow a -2 return unless need_* bit is already set, and
	handle offsets adjusted for output_offset.
	* elf-bfd.h (_bfd_elf_eh_frame_section_offset): Update prototype.
	* elf.c (_bfd_elf_section_offset): Update call.
2004-10-14 23:38:08 +00:00
Bob Wilson 40e7b7b9ef * doc/c-xtensa.texi (Xtensa Options, Absolute Literals Directive):
Remove comments about placement of literal pools.
	(Literal Directive): Update description of literal placement.
	(Literal Prefix Directive): Remove statement that this does not apply
	to absolute-mode literals.  Describe new section naming scheme.
2004-10-14 22:58:33 +00:00
Joel Brobecker 98b4dd9401 * mips-tdep.c (mips32_scan_prologue): Merge code from
mips32_skip_prologue.  Now return the address of the first
        instruction past the function prologue.
        (mips32_skip_prologue): Remove.  No longer necessary.
        (mips16_skip_prologue): Add parameter end_pc instead of
        computing it.
        (mips_skip_prologue): Compute the upper limit for the
        prologue scanning. Update call to mips16_skip_prologue.
        Replace call to mips32_skip_prologue by call to
        mips32_scan_prologue.
2004-10-14 22:34:25 +00:00
Mark Kettenis dfaf8edb15 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
NetBSD system call stubs that store %rp in the ERP slot of the
stack frame.
2004-10-14 21:08:06 +00:00
Andrew Cagney d40539a4fa Fix changelog (but not mine :-) 2004-10-14 19:15:24 +00:00
Andrew Cagney 0d863d0396 2004-10-14 Andrew Cagney <cagney@gnu.org>
* gdb.mi/gdb701.c (main): Return 0.
2004-10-14 19:13:24 +00:00
H.J. Lu 951e9133c4 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
PR 445
	* emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
	(SMALL_DATA_DTOR): Set.
	* emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
	(SMALL_DATA_DTOR): Unset.
	* scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
	after .data. If SMALL_DATA_DTOR is set, move .dtors after
	.data.
2004-10-14 17:00:16 +00:00
H.J. Lu e0255be8fc 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
* ld-scripts/sort.exp: Run for ELF targets only.
2004-10-14 16:20:47 +00:00
Paul Brook f29ff786ba * gas/arm/mapping.d: Pass --special-syms to objdump. 2004-10-14 16:04:09 +00:00
Mark Kettenis 3e3a28f1f2 * source.c: Always define O_BINARY to 0 if not defined already.
(openp): Unconditionally use O_BINARY.
2004-10-14 13:19:30 +00:00
Alan Modra afd7a018c9 ld/
PR 63
	* ldlang.h (lang_output_section_statement_type): Make "next" a
	struct lang_output_section_statement_struct *.
	(struct orphan_save): Move from elf32.em.  Add "name" and "flags".
	(lang_output_section_find_by_flags, lang_insert_orphan): Declare.
	* ldlang.c (lang_output_section_find_1): Adjust for changed
	output_section_statement "next".
	(strip_excluded_output_sections): Likewise.
	(lang_record_phdrs): Likewise.
	(lang_output_section_find_by_flags): New function.
	(output_prev_sec_find): Move from pe.em.  Adjust iterator.
	(lang_insert_orphan): New function.  Tail end of elf32.em's
	place_orphan merged with that from pe.em.  Allow bfd_section to
	be placed first.  New heuristic for placing new output section
	statement in existing script, and accompanying split of __start
	symbol alignment into a separate assignment to dot.
	(lang_add_section): Consistently use output->bfd_section rather than
	an alias, section->output_section.
	(map_input_to_output_sections): Rename overly long arg.  Move
	initialization of data_statement output section to here..
	(lang_check_section_addresses): ..from here.
	(print_assignment): Correct printing of etree_assert.
	(print_all_symbols): Don't bomb if userdata is NULL.
	(IGNORE_SECTION): Rearrange.
	* emultempl/elf32.em (output_rel_find): Adjust interator.
	(output_prev_sec_find): Delete.
	(struct orphan_save): Delete.
	(gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
	flags without creating a duplicate output section statement.
	Revise code holding history of various orphan section placements.
	Allow orphan sections to place before script specified output
	sections.  Call lang_output_section_find_by_flags when placement
	by name fails.  Use lang_insert_orphan.
	* emultempl/mmo.em (output_prev_sec_find): Delete.
	(struct orphan_save): Delete.
	(mmo_place_orphan): Revise code holding history of orphan placement.
	Allow orphans to place before existing output sections.  Use
	lang_insert_orphan.
	* emultempl/pe.em (output_prev_sec_find): Delete.
	(struct orphan_save): Delete.
	(gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
	lang_insert_orphan.
ld/testsuite/
	* ld-scripts/overlay-size.d: Update for changed orphan section
	placement.
	* ld-mmix/bpo-18.d: Likewise.
2004-10-14 12:54:47 +00:00
Mark Kettenis ad4c72d283 * top.c (gdb_readline): Always accept "rn" as a line-ending.
* event-top.c (gdb_readline2): Likewise.
2004-10-14 12:44:24 +00:00
Orjan Friberg 52bd14014e 2004-10-14 Orjan Friberg <orjanf@axis.com>
* cris-tdep.c (_initialize_cris_tdep): Re-add call to
	deprecated_add_core_fns which was removed by mistake.
2004-10-14 12:10:29 +00:00
Nick Clifton 61bbd35b9f (usage): Fix description of --special-syms switch. 2004-10-14 09:36:54 +00:00
Alan Modra b411323258 daily update 2004-10-14 00:00:14 +00:00
gdbadmin 463447af8f *** empty log message *** 2004-10-14 00:00:03 +00:00
Kevin Buettner e0e25c6c2b * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
references to deprecated_registers[] with equivalent code.
2004-10-13 21:40:41 +00:00
Daniel Jacobowitz d11e72cb08 * dw2-intercu.S, dw2-intercu.exp: New files. 2004-10-13 19:07:11 +00:00
H.J. Lu 7bf6dedeec 2004-10-13 H.J. Lu <hongjiu.lu@intel.com>
PR 440
	* coffcode.h (coff_compute_section_file_positions): Cast to
	bfd_vma when computing page alignment.
2004-10-13 18:14:40 +00:00
Mark Mitchell c0042f5da0 * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
offsets, not VMAs, for DT_VERSYM, DT_VERDEF, DT_VERNEED.

	* scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
	loadable segment.
2004-10-13 17:45:31 +00:00
Kevin Buettner 9f33594568 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
``deprecated_registers'' with equivalent code.  Use gdb_assert()
	instead of explicit test and print statement.
2004-10-13 16:38:22 +00:00
Jakub Jelinek fb5b547845 * strings.c (statbuf): New typedef.
(file_stat): Define.
	(strings_object_file): Avoid using get_file_size, instead do the
	checks here, using file_stat.
	* configure.in (HAVE_STAT64): New test.
	* configure: Rebuilt.
	* config.in: Rebuilt.
2004-10-13 14:33:51 +00:00
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