Commit Graph

48118 Commits

Author SHA1 Message Date
Nick Clifton dce669a1fd Remove spurious spaces added by previous delta 2005-04-27 16:46:23 +00:00
Daniel Jacobowitz 607fbc543c * ChangeLog: Correct some 2003-01-13 dates.
* gdb.base/sigbpt.exp, gdb.base/signull.exp, gdb.cp/bs15503.exp,
	gdb.cp/exception.exp, gdb.cp/userdef.cc, gdb.cp/userdef.exp,
	gdb.mi/mi-console.exp, gdb.mi/mi2-console.exp,
	gdb.trace/collection.exp, gdb.trace/passc-dyn.exp,
	gdb.trace/tfind.exp: Update copyright years.
2005-04-27 16:35:15 +00:00
Mark Kettenis 4b188b9f37 * solib-svr4.c: Update copyright year. Include "gdb_assert.h".
(SVR4_FETCH_LINK_MAP_OFFSETS): Don't define if not already
defined.
(legacy_fetch_link_map_offsets): Remove prototype.
(fetch_link_map_offsets_gdbarch_data): Remove.
(LM_ADDR, LM_NEXT, IGNORE_FIRST_LINK_MAP_ENTRY)
(first_link_map_member, open_symbol_file_object, svr4_current_sos)
(svr4_fetch_objfile_link_map): Call svr4_fetch_link_map_offsets
instead of SVR4_FETCH_LINK_MAP_OFFSETS.
(solib_svr4_data): New variable.
(struct solib_svr4_ops): New.
(solib_svr4_init): New fynction.
(legacy_fetch_link_map_offsets, init_fetch_link_map_offsets):
Remove functions.
(svr4_fetch_link_map_offsets, svr4_have_link_map_offsets): Rewrite
using the new `struct solib_svr4_ops'.
(_initialize_svr4_solib): Replace registration of per-architecture
data.  Add temporary hack to set
svr4_legacy_fetch_link_map_offsets if SVR4_FETCH_LINK_MAP_OFFSETS
is set.
* Makefile.in (solib-svr4.o): Update dependencies.
2005-04-27 14:30:15 +00:00
H.J. Lu 6fe7699b81 Set BFD_VERSION_DATE to 20050427. 2005-04-27 14:23:48 +00:00
Eli Zaretskii 18999be528 * gdb.texinfo (Backtrace): Describe backtraces with arguments that
were optimized away.
2005-04-27 13:02:15 +00:00
Nick Clifton 8c19749adc (elf_link_input_bfd): Handle the case where a badly formatted input file results
in a reloc which has no associated global symbol
2005-04-27 10:09:43 +00:00
Ben Elliston f3429a74c5 * link.cmd: Remove. 2005-04-27 01:56:53 +00:00
Ben Elliston 943ea8a2b0 * syslex.l: Adjust top-of-file comment: this file is part of GNU
binutils, not GNU ld.
2005-04-27 01:29:58 +00:00
gdbadmin ebf40edefd *** empty log message *** 2005-04-27 00:00:03 +00:00
Mark Kettenis 4fabe3d5f0 * configure.tgt (*-*-freebsd*): Set gdb_osabi to
GDB_OSABI_FREEBSD_ELF.  Partial fix for PR gdb/1922.
2005-04-26 21:47:21 +00:00
Mark Kettenis 19dce67779 * ld-fastcall/fastcall.exp: Don't run on i*86-*-openbsd*. 2005-04-26 19:11:14 +00:00
Mark Kettenis 907dcf3f87 * ld-srec/srec.exp (run_srec_test): Deal with ProPolice on
*-*-openbsd*.
2005-04-26 18:56:50 +00:00
H.J. Lu 60938e80e6 gas/
2005-04-26  H.J. Lu  <hongjiu.lu@intel.com>

	* config/obj-multi.h (FAKE_LABEL_NAME): Defined.

	* read.c (pseudo_set): Disallow symbol set to common symbol.

	PR 857
	* write.c (write_object_file): Report common symbol name when
	disallowing local symbol set to common symbol.
	(adjust_reloc_syms): Disallow local symbol set to undefined
	symbol.

gas/testsuite/

2005-04-26  H.J. Lu  <hongjiu.lu@intel.com>

	* gas/all/assign.s: Make `x' and `y' global.
2005-04-26 17:15:22 +00:00
H.J. Lu 6156ef10ad Update BFD_VERSION_DATE to 20050426. 2005-04-26 16:08:31 +00:00
Andrew Cagney 109c3e397e 2005-04-26 Andrew Cagney <cagney@gnu.org>
* remote.c (remote_open_1): Move "ex"'s declaration to where it is
	used.
	(remote_get_thread_local_address): Use throw_error, include a
	printed string.
	* linux-thread-db.c (thread_db_get_thread_local_address): Ditto.
	* dwarf2loc.c (dwarf_expr_tls_address): Ditto.
	* cli/cli-script.c (script_from_file): Mark up throw_error message.
	* linespec.c (symtab_from_filename, decode_variable): Ditto.
2005-04-26 14:57:22 +00:00
Jerome Guitton db5152b48d * configure.in: Fix the check for basename declaration.
* configure: Regenerate.
2005-04-26 10:24:45 +00:00
Jerome Guitton 8e5b6e16ee * bfd.m4 (BFD_NEED_DECLARATION): Restore. 2005-04-26 09:43:17 +00:00
Andrew Cagney 71fff37b08 2005-04-26 Andrew Cagney <cagney@gnu.org>
Rename 'struct exception' to 'struct gdb_exception'.
	* wrapper.c: Update.
	* varobj.c: Update.
	* tui/tui-interp.c: Update.
	* remote.c: Update.
	* mi/mi-main.c: Update.
	* mi/mi-interp.c: Update.
	* linux-thread-db.c: Update.
	* interps.h: Update.
	* interps.c: Update.
	* exceptions.h: Update.
	* exceptions.c: Update.
	* dwarf2loc.c: Update.
	* cli/cli-interp.c: Update.
	* cli/cli-script.c: Update.
	* breakpoint.c: Update.
2005-04-26 05:03:41 +00:00
DJ Delorie c631edf1cc merge from gcc 2005-04-26 01:02:02 +00:00
gdbadmin 306ab1664b *** empty log message *** 2005-04-26 00:00:04 +00:00
Mark Mitchell 3aa6b2ca26 * event-loop.c (gdb_select): Program defensively. 2005-04-25 23:51:33 +00:00
David S. Miller e459dc7b30 * elfxx-sparc.c (sparc_elf_append_rela_64): Add BFD64 protection.
(sparc_elf_r_info_64, _bfd_sparc_elf_finish_dynamic_symbol,
	sparc64_finish_dyn, _bfd_sparc_elf_finish_dynamic_sections):
	Likewise.
2005-04-25 21:53:38 +00:00
Mark Mitchell 011825f07d * event-loop.c (gdb_assert.h): Include.
(<windows.h>): Include under Windows.
	(<io.h>): Likeiwse.
	(gdb_select): New function.
	(gdb_wait_for_event): Use it.
	* Makefile.in (event-loop.o): Depend on $(gdb_assert_h).
2005-04-25 21:45:56 +00:00
H.J. Lu 6d633fd282 bfd/
2005-04-25  H.J. Lu  <hongjiu.lu@intel.com>

	PR 858
	* elflink.c (elf_link_input_bfd): Make non-debugging reference
	to discarded section an error.

ld/testsuite/

2005-04-25  H.J. Lu  <hongjiu.lu@intel.com>

	* ld-discard/extern.d: Expect error.
	* ld-discard/start.d: Likewise.
	* ld-discard/static.d: Likewise.
2005-04-25 14:59:09 +00:00
Nick Clifton bee59fd28b PR872
* objcopy.c (copy_archive): Initialise 'obfd' field of new name_list structure.
2005-04-25 14:27:00 +00:00
Nick Clifton 5219e4c0b4 Oops - forgot one place where -K is documented. 2005-04-25 09:25:57 +00:00
Nick Clifton e7f918adb6 * objcopy.c (copy_usage): Fix description of -K switch.
* doc/binutils.texi (strip, objcopy): Fix description of -K switch.
2005-04-25 09:23:24 +00:00
Ben Elliston 226b101406 * corefile.h (core_num_syms): Remove unused extern declaration.
(core_syms): Likewise.
	(min_insn_size): Likewise.
2005-04-25 07:52:25 +00:00
Nick Clifton 8207e0f24e * armemu.c (handle_v6_insn): New function - emulate a few of the v6 instructions - the ones now generated by GCC.
(ARMulEmulate32): Call handle_v6_insn when a possible v6 insn is found.
* armdefs.h (struct ARMul_State): Add new field: is_v6.#
  (ARM_v6_Prop): Define.
* arminit.c (ARMul_NewState): Initialise the v6 flag.
  (ARMul_SelectProcessor): Determine if the v6 flag should be set.
* wrapper.c (sim_create_inferior): For unknown architectures, default to allowing the v6 instructions.
2005-04-25 07:48:59 +00:00
Jan Beulich 02ddf15681 gas/
2005-04-25  Jan Beulich  <jbeulich@novell.com>

	* macro.c (macro_expand_body): Replace locals indicator parameters
	with actual macro_entry. New local variables macro_line and err.
	Don't return when encountering an error, just record the fact.
	Detect local symbol name colliding with parameter. Track line number
	inside of macro expansion.
	(do_formals): Move local variable name to wider scope. Check
	parameter of the same name doesn't already exist. In MRI mode, also
	check it doesn't collide with the argument count pseudo-parameter).
	(define_macro): Add file and line number parameters. Remove local
	variable namestr. New local variable error. Initialize macro_entry
	members file, line, and name. Don't return when encountering an
	error, just record the fact. Use %s in some diagnostics for read.c
	to insert the macro name. Free macro_entry on error.
	(macro_expand): Pass macro_entry to macro_epand_body. Don't return
	when encountering an error, just record the fact.
	(expand_irp): Don't return when encountering an error, just record
	the fact.
	* macro.h (macro_struct): New members name, file, and line.
	(define_macro): Add file and line number parameters.
	* read.c (s_macro): Pass file and line to define_macro. Tag warning
	regarding pseudo-op redefinition with the file/line that macro
	definition started at.

gas/testsuite/
2005-04-25  Jan Beulich  <jbeulich@novell.com>

	* gas/macros/badarg.s: Add tests for collisions between/among macro
	parameters and local symbols.
	* gas/macros/badarg.l: Adjust.
2005-04-25 06:43:46 +00:00
gdbadmin fc41e3d163 *** empty log message *** 2005-04-25 00:00:05 +00:00
Mark Kettenis fd9719b15b * configure.host: Add *-*-openbsd support. 2005-04-24 20:26:38 +00:00
gdbadmin ac9c441462 *** empty log message *** 2005-04-24 00:00:33 +00:00
Mark Kettenis 0369e1963e * sparc64-tdep.c: Include "dwarf2-frame.h".
(sparc64_dwarf2_frame_init_reg): New function.
* Makefile.in (sparc64-tdep.o): Update dependencies.
2005-04-23 20:20:16 +00:00
Ben Elliston 9e972ca0ed * corefile.c (core_num_syms): Make static.
(core_syms): Likewise.
	(min_insn_size): Likewise.
	* gprof.c (abfd): Remove unused variable.
	* hist.c (hist_dimension): Make static.
	(hist_dimension_abbrev): Likewise.
	* sym_ids.c (id_list): Likewise.
	(table_name): Likewise.
2005-04-23 17:13:31 +00:00
Mark Kettenis 02a71ae806 * sparc64-tdep.c: Include "dwarf2-frame.h".
(sparc64_dwarf2_frame_init_reg): New function.
* Makefile.in (sparc64-tdep.o): Update dependencies.
2005-04-23 15:40:54 +00:00
gdbadmin 3a305d25c6 *** empty log message *** 2005-04-23 00:00:06 +00:00
David S. Miller 2033872674 2005-04-22 David S. Miller <davem@davemloft.net>
* sparc64-linux-tdep.c (sparc64_linux_init_abi): Add call to
	sparc64_init_abi().
2005-04-22 23:08:06 +00:00
Bob Wilson d2a033cd2a * config/tc-xtensa.c (LOOKAHEAD_ALIGNER): Delete macro.
(future_alignment_required): Remove ifdefs that use it.
2005-04-22 21:37:31 +00:00
Mark Kettenis a07ff70c94 * ser-base.c: Include "ser-base.h" instead of "ser-unix.h". 2005-04-22 21:23:28 +00:00
Mark Mitchell 248697b2a7 * ser-base.c (<sys/time.h>): Include. 2005-04-22 20:32:01 +00:00
Mark Kettenis a86c5ab248 * ppcobsd-tdep.c (ppcobsd_init_abi): Set return_value. 2005-04-22 20:29:14 +00:00
Bob Wilson 84b08ed948 * config/tc-xtensa.c (xg_get_build_instr_size): Remove.
(xg_is_narrow_insn, xg_expand_narrow): Remove.  Merge into...
	(xg_is_single_relaxable_insn): ...here.  Add "targ" and "narrow_only"
	parameters.
	(xg_assembly_relax, xg_find_narrowest_format, relaxation_requirements,
	convert_frag_narrow): Use new version of xg_is_single_relaxable_insn.
2005-04-22 20:21:59 +00:00
Mark Kettenis 1c04af1399 * sparc-linux-tdep.c: Reorder includes. Tweak a few comments.
(LINUX32_SIGTRAMP_INSN0, LINUX32_SIGTRAMP_INSN1)
(LINUX32_RT_SIGTRAMP_INSN0, LINUX32_RT_SIGTRAMP_INSN1): Remove
macros.
(sparc32_linux_sigframe, sparc32_linux_rt_sigframe): Hardcode
instructions.
* sparc64-linux-tdep.c: Reorder includes.  Tweak a few comments.
(LINUX64_RT_SIGTRAMP_INSN0, LINUX64_RT_SIGTRAMP_INSN1): Remove
macros.
(sparc64_linux_rt_sigframe): Hardcode instructions.
* Makefile.in (sparc-linux-tdep.o, sparc64-linux-tdep.o): Update
2005-04-22 19:59:07 +00:00
Mark Kettenis 70f1dc74c3 * sparc-linux-tdep.c: Reorder includes. Tweak a few comments.
(LINUX32_SIGTRAMP_INSN0, LINUX32_SIGTRAMP_INSN1)
(LINUX32_RT_SIGTRAMP_INSN0, LINUX32_RT_SIGTRAMP_INSN1): Remove
macros.
(sparc32_linux_sigframe, sparc32_linux_rt_sigframe): Hardcode
instructions.
* sparc64-linux-tdep.c: Reorder includes.  Tweak a few comments.
(LINUX64_RT_SIGTRAMP_INSN0, LINUX64_RT_SIGTRAMP_INSN1): Remove
macros.
(sparc64_linux_rt_sigframe): Hardcode instructions.
* Makefile.in (sparc-linux-tdep.o, sparc64-linux-tdep.o): Update
dependencies.
2005-04-22 19:52:21 +00:00
Mark Kettenis a33e488c68 * sparc-linux-tdep.c: Update copyright year.
(sparc32_linux_init_abi): Set skip_trampoline_code and
solib_svr4_fetch_link_map_offsets.  Set TDEP->plt_entry_size.
Don't set software_single_step and don't call
sparc32_sol2_init_abi.
* sparc64-linux-tdep.c: Update copyright year.
(sparc64_linux_init_abi): Set skip_trampoline_code and
solib_svr4_fetch_link_map_offsets.  Set TDEP->plt_entry_size.
Don't set software_single_step and don't call
sparc64_sol2_init_abi.
2005-04-22 19:06:23 +00:00
Jerome Guitton d34a2b1dc9 * configure.in: Replace BFD_NEED_DECLARATION checks by the
corresponding AC_CHECK_DECLS.
	* sysdep.h: Replace NEED_DECLARATION_* checks by the corresponding
	HAVE_DECL_*.
	* bfd.m4 (BFD_NEED_DECLARATION): Remove, obsolete.
	* configure: Regenerate.
	* config.in: Ditto.
2005-04-22 13:58:14 +00:00
Eli Zaretskii 0abb7bc72f * gdb.texinfo (Remote configuration): Document "set/show
get-thread-local-storage-address".  Add cross-reference to the
	description of the qGetTLSAddr packet.
	(General Query Packets): Mention "set remote
	get-thread-local-storage-address" and add a reference to its
	description.
2005-04-22 13:09:30 +00:00
Eli Zaretskii 24ec834bce * remote-st.c (_initialize_remote_st2000): Remove the extraneous
"<command>" string from the call to add_com.
	* remote-sim.c (_initialize_remote_sim): Ditto.
	* remote-utils.c (_initialize_sr_support): Ditto.
	* remote-mips.c (_initialize_remote_mips): Ditto.
2005-04-22 12:49:27 +00:00
H.J. Lu 34f3e815d1 2005-04-21 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.am (INCLUDES): New. Add -D_GNU_SOURCE.
	(chew.o): Use it.
	* Makefile.in: Regenerate.
2005-04-22 05:21:49 +00:00