Commit Graph

48787 Commits

Author SHA1 Message Date
Geoffrey Keating 67f3cb056f Index: include/ChangeLog
2005-06-20  Geoffrey Keating  <geoffk@apple.com>

	* libiberty.h (strverscmp): Prototype.

Index: libiberty/ChangeLog
2005-06-20  Geoffrey Keating  <geoffk@apple.com>

	* strverscmp.c: New.
	* Makefile.in (CFILES): Add strverscmp.c.
	(CONFIGURED_OFILES): Add strverscmp.o.
	(strverscmp.o): New rule.
	(stamp-functions): Add $(srcdir) to files in source directory.
	* configure.ac (funcs): Add strverscmp.
	(AC_CHECK_FUNCS): Add strverscmp.
	* configure: Regenerate.
	* functions.texi: Regenerate.
2005-06-21 00:28:25 +00:00
Alan Modra 9c0a3ed4ce daily update 2005-06-21 00:00:06 +00:00
gdbadmin 8e9ef7a65a *** empty log message *** 2005-06-21 00:00:04 +00:00
H.J. Lu b300c311a0 gas/
2005-06-20  H.J. Lu  <hongjiu.lu@intel.com>

	PR 1013
	* config/tc-i386.c (md_assemble): Don't call optimize_disp on
	movabs.
	(optimize_disp): Optimize only if possible. Don't use 64bit
	displacement on non-constants and do same on constants if
	possible.

gas/testsuite/

2005-06-20  H.J. Lu  <hongjiu.lu@intel.com>

	PR 1013
	* i386/x86_64.s: Add absolute 64bit addressing tests for mov.
	* i386/x86_64.s: Updated.

include/opcode/

2005-06-20  H.J. Lu  <hongjiu.lu@intel.com>

	PR 1013
	* i386.h (i386_optab): Update comments for 64bit addressing on
	mov. Allow 64bit addressing for mov and movq.
2005-06-20 23:18:39 +00:00
H.J. Lu 973a3492d5 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
PR 1025
	* elf-m10300.c (mn10300_elf_check_relocs): Handle indirect
	symbol.
	* elf32-arm.c (elf32_arm_check_relocs): Likewise.
	* elf32-avr.c (elf32_avr_check_relocs): Likewise.
	* elf32-cris.c (cris_elf_check_relocs): Likewise.
	* elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
	* elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
	* elf32-fr30.c (fr30_elf_check_relocs): Likewise.
	* elf32-frv.c (elf32_frv_check_relocs): Likewise.
	* elf32-i370.c (i370_elf_check_relocs): Likewise.
	* elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
	* elf32-m32r.c (m32r_elf_check_relocs): Likewise.
	* elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
	* elf32-m68k.c (elf_m68k_check_relocs): Likewise.
	* elf32-mcore.c (mcore_elf_check_relocs): Likewise.
	* elf32-ms1.c (ms1_elf_check_relocs): Likewise.
	* elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
	* elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
	* elf32-ppc.c (ppc_elf_check_relocs): Likewise.
	* elf32-s390.c (elf_s390_check_relocs): Likewise.
	* elf32-sh.c (sh_elf_check_relocs): Likewise.
	* elf32-v850.c (v850_elf_check_relocs): Likewise.
	* elf32-vax.c (elf_vax_check_relocs): Likewise.
	* elf64-mmix.c (mmix_elf_check_relocs): Likewise.
	* elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
	* elf64-s390.c (elf_s390_check_relocs): Likewise.
	* elf64-sh64.c (sh_elf64_check_relocs): Likewise.
	* elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
	* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
2005-06-20 18:12:11 +00:00
H.J. Lu f7c5057a52 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
PR 1022
	* elf32-hppa.c (elf32_hppa_check_relocs): Handle indirect
	symbol.
2005-06-20 13:06:27 +00:00
H.J. Lu 71cb94647f 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
PR 1025:
	* elf32-i386.c (elf_i386_check_relocs): Handle indirect symbol.
	* elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
2005-06-20 12:59:49 +00:00
Nick Roberts 1ed91682d1 (test_stack_locals_listing): Remove test for -stack-select-frame without
arguments.
(test_stack_frame_listing): Add test for newly implemented command
-stack-info-frame.
2005-06-20 03:38:20 +00:00
Nick Roberts fe03833f9a *** empty log message *** 2005-06-20 03:37:15 +00:00
gdbadmin c9b5d3341f *** empty log message *** 2005-06-20 00:00:34 +00:00
Alan Modra 23dc103238 daily update 2005-06-20 00:00:06 +00:00
Mark Kettenis 99d64d771c * hppa-tdep.c (hppa_pointer_to_address_hack): Remove function.
(unwind_command): Use %lx to print pointer.
2005-06-19 21:25:47 +00:00
Mark Kettenis 8d7337bf3d * remote-sim.c (gdbsim_xfer_inferior_memory): Remove prototype.
Change type of second argument to`gdb_byte *'.
2005-06-19 20:08:37 +00:00
Nick Roberts dcaaae044f (GDB/MI Stack Manipulation):
Re-instate -stack-info-frame with example.  Say that it gets
info on selected frame, not current frame.
2005-06-19 03:16:32 +00:00
Nick Roberts 29629dcf1e *** empty log message *** 2005-06-19 03:14:46 +00:00
Nick Roberts ac307ba808 (mi_cmds): Replace entry for -stack-info-frame.
Make it use mi_cmd_stack_info_frame
2005-06-19 03:12:39 +00:00
Nick Roberts 3ba51a77e4 (mi_cmd_stack_info_frame): New declaration. 2005-06-19 03:12:15 +00:00
Nick Roberts 64fd8944d9 (mi_cmd_stack_info_frame): New function. 2005-06-19 03:11:47 +00:00
gdbadmin 7fcae197ab *** empty log message *** 2005-06-19 00:00:32 +00:00
Alan Modra a81c87039a daily update 2005-06-19 00:00:06 +00:00
Mark Kettenis 4ba6a9753f * hppa-tdep.c (hppa_fallback_frame_cache): Don't error out if we
can't find the bounds of the current function.  Wrap some long
lines in the process.
2005-06-18 22:03:41 +00:00
Mark Kettenis 6618125dce * regcache.c (regcache_raw_supply, regcache_raw_collect): Change
type of last argument back to `void *'.
* regcache.h (regcache_raw_supply, regcache_raw_collect): Likewise.
2005-06-18 15:22:55 +00:00
H.J. Lu 73d147dcf0 2005-06-18 H.J. Lu <hongjiu.lu@intel.com>
* reloc.c: Add BFD_RELOC_X86_64_GOTOFF64 and
	BFD_RELOC_X86_64_GOTPC32.
	* bfd-in2.h: Regenerated.
2005-06-18 13:23:06 +00:00
Eli Zaretskii d416eeec97 (Backtrace): Document that free-standing environments do not need
to have a `main' function.
2005-06-18 13:12:04 +00:00
Eli Zaretskii 76d17f347a (Machine Code): Document possible problems with locations in
shared libraries.
2005-06-18 12:54:36 +00:00
Eli Zaretskii 59b7b46f98 (Files): Add more indexing for solib-absolute-prefix and --with-sysroot. 2005-06-18 12:40:48 +00:00
Eli Zaretskii fc8be69e5e (Files): Document the possibility of loading unlinked object files. 2005-06-18 12:36:06 +00:00
Eli Zaretskii 638ac427cd (Threads): Add an @cindex entry for "thread apply". 2005-06-18 12:18:25 +00:00
Eli Zaretskii 5127403546 (Output Formats): More detailed description of the `c' format.
(Memory): List explicitly all the formats supported by `x'.
2005-06-18 12:10:55 +00:00
Eli Zaretskii 397ca11534 (Server): Clarify that `file' should be used before connecting to the server.
(Files): Add an xref to the above description.
2005-06-18 11:39:36 +00:00
Nick Roberts 86f91582c3 (GDB/MI Stack Manipulation): Remove reference to
-stack-info-frame.
2005-06-18 03:01:48 +00:00
Nick Roberts 74f6deaacd *** empty log message *** 2005-06-18 02:51:55 +00:00
Nick Roberts 41083b80d4 (mi_cmds): Remove entry for -stack-info-frame. 2005-06-18 02:49:50 +00:00
Nick Roberts fcf4393226 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth):
Don't test for stack.
(mi_cmd_stack_select_frame): Make the argument mandatory.
Don't test for stack.
2005-06-18 02:49:18 +00:00
Daniel Jacobowitz 0ffa0ea5bc Correct a typo. 2005-06-18 00:56:23 +00:00
Alan Modra 2fdad614a8 daily update 2005-06-18 00:00:08 +00:00
gdbadmin 400fca7852 *** empty log message *** 2005-06-18 00:00:04 +00:00
Jakub Jelinek aa2ca951cf * elf.c (bfd_section_from_shdr): Kill bogus warning. 2005-06-17 15:48:25 +00:00
Jakub Jelinek a50b216054 * elf.c (bfd_section_from_shdr): Fail if sh_entsize is bogus for
symbol, relocation, group or versym sections.

	* coffcode.h (coff_slurp_reloc_table): Don't crash if native_relocs
	is NULL.
	* peXXigen.c (pe_print_idata): Don't crash if dll_name or start_address
	doesn't point into the section.
2005-06-17 13:39:56 +00:00
Jakub Jelinek 08d8fa1187 * elf/external.h (GRP_ENTRY_SIZE): Define.
* readelf.c (CHECK_ENTSIZE_VALUES, CHECK_ENTSIZE): Define.
	(process_section_headers): Use it.
	(process_relocs): Don't crash if symsec is not SHT_SYMTAB
	or SHT_DYNSYM.
	(process_version_sections): Use sizeof (Elf_External_Versym)
	instead of sh_entsize.
2005-06-17 13:37:26 +00:00
Jan Beulich d6ab8113e3 bfd/
2005-06-17  Jan Beulich  <jbeulich@novell.com>

	* bfd-in2.h (elf_x86_64_reloc_type): Add BFD_RELOC_X86_64_GOTOFF64
	and BFD_RELOC_X86_64_GOTPC32.
	* libbfd.h (bfd_reloc_code_real_names): Likewise.
	* elf64-x86-64.c (x86_64_elf_howto_table): Add entries for
	R_X86_64_PC64, R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
	(x86_64_reloc_map): Add entries for R_X86_64_PC64, R_X86_64_GOTOFF64,
	and R_X86_64_GOTPC32.
	(elf64_x86_64_info_to_howto): Adjust bounding relocation type.
	(elf64_x86_64_check_relocs): Also handle R_X86_64_PC64,
	R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
	(elf64_x86_64_relocate_section): Likewise.
	(elf64_x86_64_gc_sweep_hook): Also handle R_X86_64_PC64.

gas/
2005-06-17  Jan Beulich  <jbeulich@novell.com>

	* config/tc-i386.c (reloc): Also handle BFD_RELOC_64_PCREL.
	(tc_i386_fix_adjustable): Include BFD_RELOC_X86_64_GOTOFF64,
	BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64.
	(output_disp): Do GOTPC conversion also for BFD_RELOC_X86_64_32S
	and BFD_RELOC_32_PCREL. Use BFD_RELOC_X86_64_GOTPC32 instead of
	aborting.
	(output_imm): Do GOTPC conversion also for BFD_RELOC_X86_64_32S.
	Use BFD_RELOC_X86_64_GOTPC32 instead of aborting.
	(tc_gen_reloc): Do GOTPC conversion also for BFD_RELOC_32_PCREL.
	Use BFD_RELOC_X86_64_GOTPC32 instead of aborting. Also handle
	BFD_RELOC_X86_64_GOTOFF64, BFD_RELOC_X86_64_GOTPC32,
	BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64. Also
	convert 8-byte pc-relative relocations.
	(lex_got): Use BFD_RELOC_X86_64_GOTOFF64 for 64-bit @gotoff.
	(i386_validate_fix): Likewise.
	(x86_cons): Also handle quad values in 64-bit mode.
	(i386_displacement): Also handle BFD_RELOC_X86_64_GOTOFF64.
	(md_apply_fix): Include BFD_RELOC_X86_64_DTPOFF64 and
	BFD_RELOC_X86_64_TPOFF64 in the TLS check. Also convert BFD_RELOC_64
	to pc-relative variant. Also check for BFD_RELOC_64_PCREL.

gas/testsuite/
2005-06-17  Jan Beulich  <jbeulich@novell.com>

	* gas/i386/x86-64-pcrel.s: Add insn requiring 64-bit pc-relative
	relocation. Add insns for all widths of non-pc-relative relocations.
	* gas/i386/x86-64-pcrel.d: Adjust.

include/elf/
2005-06-17  Jan Beulich  <jbeulich@novell.com>

	* x86-64.h (elf_x86_64_reloc_type): Adjust comment for
	R_X86_64_GOTPCREL. Add R_X86_64_PC64, R_X86_64_GOTOFF64, and
	R_X86_64_GOTPC32.
2005-06-17 08:03:59 +00:00
Wu Zhou 7a55f27940 * gdb.fortran/array_element.f: New file.
* gdb.fortran/array_element.exp: New testcase.
2005-06-17 05:18:12 +00:00
Daniel Jacobowitz d592fa2f7f * linux-low.c (linux_wait, linux_send_signal): Don't test
an unsigned long variable for > 0 if it could be MAX_ULONG.
	* server.c (myresume): Likewise.
	* target.c (set_desired_inferior): Likewise.
2005-06-17 04:01:05 +00:00
Wu Zhou 39be55309b * remote.c (set_thread, remote_thread_alive): Replace sprintf
call with xsnprintf.
	(remote_threads_extra_info, extended_remote_restart)
	(remote_check_symbols, store_register_using_P)
	(compare_sections_command): Ditto.
2005-06-17 03:53:15 +00:00
Wu Zhou ecbc58df51 * remote.c (set_thread, remote_thread_alive): Replace sprintf
call with xsnprintf.
	(remote_threads_extra_info, extended_remote_restart)
	(remote_check_symbols, store_register_using_P)
	(compare_sections_command): Ditto.
2005-06-17 03:42:24 +00:00
Daniel Jacobowitz 195b8a572e * gencode.c (tab): Avoid lvalue casts. Suggested by
Ralf Corsepius <ralf.corsepius@rtems.org>.
2005-06-17 03:13:07 +00:00
Alan Modra 61e264e76f daily update 2005-06-17 00:00:08 +00:00
gdbadmin e6ceb3100f *** empty log message *** 2005-06-17 00:00:07 +00:00
David Ung 4b185e973e * mips16-opc.c (mips16_opcodes): Add the following MIPS16e
instructions to the table; seb/seh/sew/zeb/zeh/zew.
2005-06-16 17:01:12 +00:00
David Ung b16d63dac6 * mips.igen: New mips16e model and include m16e.igen.
(check_u64): Add mips16e tag.
* m16e.igen: New file for MIPS16e instructions.
* configure.ac (mipsisa32*-*-*, mipsisa32r2*-*-*, mipsisa64*-*-*,
mipsisa64r2*-*-*): Change sim_gen to M16, add mips16 and mips16e
models.
* configure: Regenerate.
2005-06-16 15:15:49 +00:00