Commit Graph

50483 Commits

Author SHA1 Message Date
Paul Brook
f40d164325 2005-02-22 Paul Brook <paul@codesourcery.com>
gas/
	* config/tc-arm.c (do_pld): Remove incorrect write to
	inst.instruction.
	(encode_thumb32_addr_mode): Use correct operand.
gas/testsuite/
	* gas/arm/thumb32.d: Fix expected pld opcode.
2006-02-22 15:03:30 +00:00
gdbadmin
0dd0cb2909 *** empty log message *** 2006-02-22 00:00:02 +00:00
Alan Modra
252e73c68f daily update 2006-02-21 23:00:07 +00:00
Mark Kettenis
094a342e19 * configure.ac: Introduce ---enable-werror, which adds -Werror to
the compiler command line.  Enabled by default.  Disable with
--disable-werror.
* configure regenerate.
2006-02-21 21:02:25 +00:00
Daniel Jacobowitz
7476373706 * elfread.c (elf_symtab_read): Skip symbols which BFD considers
special.
2006-02-21 20:38:48 +00:00
Andrew Stubbs
13d35ae5ce 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
* defs.h (directory_switch): Add prototype.
	* main.c (captured_main): Use directory_switch() instead of
	directory_command() to add directories from the -d switch.
	* source.c (directory_switch): New function.
	(add_path): Use buildargv() to parse spaces in filenames properly.
	Strip multiple trailing '/' rather than just one.
2006-02-21 19:46:48 +00:00
Andrew Stubbs
5b96932ba3 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
* symfile.c (add_symbol_file_command): Use buildargv(), instead of
	hand decoding the command line, to allow use of quotes and spaces.
	(_initialize_symfile): Reorganize the help message for add-symbol-file
	such that 'help files' shows a better message.

testsuite/
	* gdb.base/help.exp (help add-symbol-file): Update.
2006-02-21 19:13:20 +00:00
Andrew Stubbs
1986bccdb5 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
* symfile.c (generic_load): Use buildargv() and tilde_expand()
	to parse file names with quoting, spaces and tildes properly.
	(load_command): Quote all special characters before calling
	target_load() such that buildargv() doesn't break file names.
	(_initialize_symfile): Mention the load offset in the help for
	the load command.
	* remote-sim.c: Include readline.h.
	(gdbsim_load): Use buildargv and tilde_expand() to parse file
	names with quoting, spaces and tildes properly.
	* target.h (target_load): Comment the parameters better.
	* Makefile.in (remote_sim.o): Add readline.h dependency.

testsuite/
	* gdb.base/help.exp (help load): Update expected results.
2006-02-21 18:22:27 +00:00
Andrew Stubbs
a6b0a3f314 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
* sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
	(sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
	(sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
	(sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
2006-02-21 16:08:26 +00:00
Paul Brook
216d22bc1d 2006-02-21 Paul Brook <paul@codesourcery.com>
* config/tc-arm.c (md_apply_fix): Fix off-by-one errors.
2006-02-21 15:13:54 +00:00
DJ Delorie
96f4851a80 merge from gcc 2006-02-21 02:38:06 +00:00
DJ Delorie
1c7a49d207 merge from gcc 2006-02-21 02:01:56 +00:00
Alan Modra
22d606e9c2 PR ld/2218
* elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie
	is dynamic.
	* elf32-hppa.c (allocate_dynrelocs): Likewise.
	* elf32-i386.c (allocate_dynrelocs): Likewise.
	* elf32-s390.c (allocate_dynrelocs): Likewise.
	* elf32-sh.c (allocate_dynrelocs): Likewise.
	* elf64-s390.c (allocate_dynrelocs): Likewise.
	* elf64-x86-64.c (allocate_dynrelocs): Likewise.
	* elf32-m32r.c (allocate_dynrelocs): Likewise.  Discard relocs
	on undef weak with non-default visibility too.
	* elfxx-sparc.c (allocate_dynrelocs): Ditto.
2006-02-21 01:51:59 +00:00
Alan Modra
3168356f3e * bfd.c: (_bfd_default_error_handler): Don't call abort on
error, instead call _exit.
	(_bfd_abort): Call _exit not xexit.
2006-02-21 00:14:49 +00:00
gdbadmin
9b64be6367 *** empty log message *** 2006-02-21 00:00:02 +00:00
H.J. Lu
72aa65a751 2006-02-20 H.J. Lu <hongjiu.lu@intel.com>
PR ld/2218
	* ld-pie/pie.exp: Add the weak undefined data test.

	* ld-pie/weakundef-data.c: New file.
2006-02-20 20:11:00 +00:00
Daniel Jacobowitz
17fbb0bdc7 * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
and __SIGRTMIN + 1.
2006-02-20 17:01:28 +00:00
Daniel Jacobowitz
444abacaac * remote.c: Add an enumeration for configurable remote
packets.
	(remote_protocol_packets, set_remote_protocol_packet_cmd)
	(show_remote_protocol_packet_cmd): New.
	(remote_protocol_vcont)
	(set_remote_protocol_vcont_packet_cmd)
	(show_remote_protocol_vcont_packet_cmd)
	(remote_protocol_qSymbol)
	(set_remote_protocol_qSymbol_packet_cmd)
	(show_remote_protocol_qSymbol_packet_cmd)
	(remote_protocol_P, set_remote_protocol_P_packet_cmd)
	(show_remote_protocol_P_packet_cmd)
	(remote_protocol_Z)
	(set_remote_protocol_Z_software_bp_packet_cmd)
	(show_remote_protocol_Z_software_bp_packet_cmd)
	(set_remote_protocol_Z_hardware_bp_packet_cmd)
	(show_remote_protocol_Z_hardware_bp_packet_cmd)
	(set_remote_protocol_Z_write_wp_packet_cmd)
	(show_remote_protocol_Z_write_wp_packet_cmd)
	(set_remote_protocol_Z_read_wp_packet_cmd)
	(show_remote_protocol_Z_read_wp_packet_cmd)
	(set_remote_protocol_Z_access_wp_packet_cmd)
	(show_remote_protocol_Z_access_wp_packet_cmd)
	(remote_protocol_binary_download)
	(set_remote_protocol_binary_download_cmd)
	(show_remote_protocol_binary_download_cmd)
	(remote_protocol_qPart_auxv)
	(set_remote_protocol_qPart_auxv_packet_cmd)
	(show_remote_protocol_qPart_auxv_packet_cmd)
	(remote_protocol_qGetTLSAddr)
	(set_remote_protocol_qGetTLSAddr_packet_cmd)
	(show_remote_protocol_qGetTLSAddr_packet_cmd)
	(remote_protocol_p)
	(set_remote_protocol_p_packet_cmd)
	(show_remote_protocol_p_packet_cmd): Delete.

	(init_all_packet_configs): Simplify.
	(set_remote_protocol_Z_packet_cmd)
	(show_remote_protocol_Z_packet_cmd)
	(remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
	(remote_fetch_registers, remote_prepare_to_store)
	(remote_store_registers, check_binary_download)
	(remote_write_bytes, remote_insert_breakpoint)
	(remote_remove_breakpoint, remote_insert_watchpoint)
	(remote_remove_watchpoint, remote_insert_hw_breakpoint)
	(remote_remove_hw_breakpoint, remote_xfer_partial)
	(remote_get_thread_local_address): Update for packet array.
	(_initialize_remote): Likewise; also update for common
	set/show commands.
2006-02-20 15:19:06 +00:00
Daniel Jacobowitz
3bd72c6f17 * symfile.c (place_section): Correct retry logic. 2006-02-20 15:02:10 +00:00
Paolo Bonzini
c52c689725 2006-02-20 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/25670

	* Makefile.tpl ([+compare-target+]): Print explanation messages.

	* Makefile.def (ADAFLAGS, BOOT_ADAFLAGS, LANGUAGES): New flags_to_pass.
	* Makefile.tpl (BASE_FLAGS_TO_PASS): Support optional flags_to_pass.
	(EXTRA_GCC_FLAGS): Remove ADAFLAGS, BOOT_ADAFLAGS, LANGUAGES,
	BUILD_PREFIX, BUILD_PREFIX_1.
	* configure.in: (BUILD_PREFIX, BUILD_PREFIX_1): Don't substitute.

	* Makefile.def (bootstrap stage 1): Pass LIBCFLAGS too.
	* Makefile.tpl (POSTSTAGE1_FLAGS_TO_PASS): Override LIBCFLAGS too.

	* Makefile.tpl (configure-stage[+id+]-[+prefix+][+module+],
	all-stage[+id+]-[+prefix+][+module+], : Use $(current_stage) instead
	of `cat stage_current`.  Always provide the `r' and `s' variables.
	(clean-stage[+id+]-[+prefix+][+module+]): Likewise, and make it into
	a single shell execution.
	(configure-[+prefix+][+module+], all-[+prefix+][+module+]): For
	bootstrapped modules, make the stage1 module if the build was not
	started yet, else build the current stage.
	(all-host, all-target): Omit bootstrapped modules (if bootstrapping).
	(all-build, all-host, all-target, [+make_target+]-host,
	[+make_target+]-target): Do not use \-continued lines.
	(target modules): Depend on stage_last, not all-gcc, if bootstrapping.
	(current_stage, restrap, stage_last): New.

	* Makefile.in: Regenerate.
	* configure: Regenerate.
2006-02-20 08:34:53 +00:00
Christopher Faylor
a244bdca25 * win32_nat.c (cygwin_load_start): New variable.
(cygwin_load_end): Ditto.
(have_saved_context): Ditto.
(saved_context): Ditto.
(max_dll_name_len): Delete obsolete variable.
(do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll if we
are in a cygwin signal rather than a windows signal.
(solib_symbols_add): Detect and store beginning and end of cygwin DLL if dll
being loaded is the cygwin DLL.
(register_loaded_dll): Remove calculation of max_dll_name_len.
(win32_clear_solib): Ditto.
(handle_load_dll): Delete obsolete variable.  Remove unneeded call to
solib_add.
(handle_output_debug_string): Detect and store signal information sent by
Cygwin here.
(handle_exception): Silently pass on errors in the cygwin DLL.  Return -1 on
first pass exception.
(win32_continue): Remove spurious clearing of continue_status.
(get_win32_debug_event): Deal differently first chance exception.
2006-02-20 05:10:51 +00:00
gdbadmin
e78254f677 *** empty log message *** 2006-02-20 00:00:04 +00:00
Alan Modra
9795e19988 daily update 2006-02-19 23:00:07 +00:00
Fred Fish
a8b7528fa2 Reviewed and approved by Daniel Jacobowitz
2006-02-19  Fred Fish  <fnf@specifix.com>
	* gdb.base/pc-fp.exp (get_valueofx): Don't print environment
	specifix hex value as part of results.
	* gdb.base/shreloc.exp (get_msym_addrs): Ditto.
2006-02-19 20:53:34 +00:00
Randolph Chung
806e23c026 2006-02-19 Randolph Chung <tausq@debian.org>
* hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
	unwind entry.
2006-02-19 07:21:26 +00:00
gdbadmin
ee257c9d06 *** empty log message *** 2006-02-19 00:00:03 +00:00
Alan Modra
8845cd53b0 daily update 2006-02-18 23:00:08 +00:00
Fred Fish
d843c49cbf 2006-02-16 Fred Fish <fnf@specifix.com>
* eval.c (evaluate_subexp_standard):  For OP_TYPE, return
	a non lval value zero, of the appropriate type, when avoiding
	side effects.
	* typeprint.c (ptype_eval): Remove function and declaration.
	(ptype_command): Simplify to just a call to whatis_exp.
2006-02-18 20:47:54 +00:00
Fred Fish
62f3a2ba52 2006-02-17 Fred Fish <fnf@specifix.com>
* gdb.texinfo (Symbols): Update descriptions of 'whatis' and
	'ptype' commands to reflect the fact that the only significant
	difference between them is that ptype prints the complete type
	description instead of just the name.
2006-02-18 20:45:01 +00:00
Fred Fish
f8261448b0 2006-02-16 Fred Fish <fnf@specifix.com>
* gdb.base/whatis.c: Define variables using typedefs char_addr,
	ushort_addr, and slong_addr, so the typedefs are not optimized
	away.
	* gdb.base/whatis.exp: Add tests using type name for struct type,
	union type, enum type, and typedef.
2006-02-18 20:01:17 +00:00
gdbadmin
ad490fd119 *** empty log message *** 2006-02-18 00:00:02 +00:00
Alan Modra
f6d114e1c1 daily update 2006-02-17 23:00:05 +00:00
Kevin Buettner
888b45b888 * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
New functions.
	* elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
2006-02-17 18:08:00 +00:00
Nick Clifton
d70c5fc7c5 Add support for the Infineon XC16X. 2006-02-17 14:36:28 +00:00
Nick Hudson
0b92ab21c5 * readelf.c (get_machine_flags): Add logic for missing EF_SH flags. 2006-02-17 12:58:46 +00:00
Alan Modra
cab87ef999 * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
* elf64-ppc.c (allocate_dynrelocs): Likewise.
2006-02-17 12:52:58 +00:00
Alan Modra
dfbb6ac933 PR ld/2218
* elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
	dynamic.
	(ppc64_elf_relocate_section): Check output reloc section size.
	* elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
2006-02-17 04:49:34 +00:00
gdbadmin
86a7cd1632 *** empty log message *** 2006-02-17 00:00:02 +00:00
Alan Modra
428a6f770c daily update 2006-02-16 23:00:06 +00:00
H.J. Lu
cedc298e35 2006-02-16 H.J. Lu <hongjiu.lu@intel.com>
PR ld/2322
	* elf.c (get_segment_type): New function.
	(_bfd_elf_print_private_bfd_data): Use it.
	(print_segment_map): New function.
	(assign_file_positions_for_segments): Call print_segment_map
	when there are not enough room for program headers.
2006-02-16 18:07:54 +00:00
Nick Hudson
aaa2ab3d61 bfd:
* config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
	traditional MIPS ELF targets.

	gas:
	* configure.tgt: set emulation for mips-*-netbsd*

	ld:
	* configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
	Use the traditional target.
2006-02-16 08:05:02 +00:00
gdbadmin
4d36a59818 *** empty log message *** 2006-02-16 00:00:02 +00:00
Alan Modra
df4c782961 daily update 2006-02-15 23:00:05 +00:00
H.J. Lu
35ccda9e73 2006-02-15 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/2338
	* dwarf2.c (check_function_name): New function.
	(_bfd_dwarf2_find_nearest_line): Use check_function_name to
	check if function is correct.
2006-02-15 22:29:42 +00:00
Paul Brook
1c5bada068 2006-02-15 Paul Brook <paul@codesourcery.com>
* arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
	Load insn opcodes as unsigned values.
2006-02-15 17:36:11 +00:00
Daniel Jacobowitz
545587ee60 * linux-low.c (regsets_store_inferior_registers): Read the regset
from the target before filling it.
2006-02-15 14:36:32 +00:00
Alan Modra
e0ae6d6fe9 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
debug sections.
	(elf_link_input_bfd): Adjust comments.
2006-02-15 14:12:54 +00:00
gdbadmin
21e282f58e *** empty log message *** 2006-02-15 00:00:32 +00:00
Alan Modra
706ba67bf8 daily update 2006-02-14 23:00:07 +00:00
Alexandre Oliva
48426bc23f Update copyright notice 2006-02-14 19:05:40 +00:00