Commit Graph

64047 Commits

Author SHA1 Message Date
Alan Modra e16ce6084b daily update 2009-12-21 23:00:04 +00:00
Doug Evans c5f62d5ff9 gdb/
* linux-nat.c (kill_lwp): Minor cleanup, move definition of
	tkill_failed into ifdef HAVE_TKILL_SYSCALL.  Move setting of errno
	there too.  Delete unnecessary resetting of errno after syscall.
	Minor comment changes to match gdbserver/linux-low.c:kill_lwp.

	gdbserver/
	* linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
	Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
	warning ifndef __NR_tkill.  Move setting of errno there too.
	Delete unnecessary resetting of errno after syscall.
	Minor comment changes to match gdb/linux-nat.c:kill_lwp.
2009-12-21 21:23:43 +00:00
Doug Evans 10e86dd778 * configure.ac: Check for dladdr.
* config.in: Regenerate.
	* configure: Regenerate.
	* thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
	(try_thread_db_load): Update.
2009-12-21 20:52:53 +00:00
Doug Evans 4ee62156d9 * linux-low.c (my_waitpid): Delete unnecessary prototype. 2009-12-21 17:54:03 +00:00
Joel Brobecker aacf5b1e4a Fix typo in filename. 2009-12-21 13:23:25 +00:00
Ramana Radhakrishnan 4a42ebbc0e Fix Thumb2 bl range options.
2009-12-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
            Richard Earnshaw  <richard.earnshaw@arm.com>

        * config/tc-arm.c (encode_thumb2_b_bl_offset): New. Refactored
        from md_apply_fix.
        (md_apply_fix): Fixup range checks for Thumb2 version
        of unconditional calls. Call encode_thumb2_b_bl_offset for
        unconditional branches / function calls.
2009-12-21 12:56:41 +00:00
Alan Modra 1a7bd2debe * MAINTAINERS: Update my email address. 2009-12-21 10:27:21 +00:00
Alan Modra ebc5095a6c * MAINTAINERS: Update my email address. 2009-12-21 10:21:16 +00:00
Alan Modra 32ca96409d * elf64-ppc.c: Delete my email address. 2009-12-21 10:21:01 +00:00
Vladimir Prus a6b29f8772 * mi/mi-main.c (mi_cmd_gdb_exit): Flush raw_stdout. 2009-12-21 10:02:06 +00:00
Vladimir Prus 9e19b45e2e PR gdb/10884
* value.c (value_primitive_field): Call check_typedef
	on the type.
2009-12-21 09:50:31 +00:00
Joel Brobecker dd0cd0d0e0 * COPYING: Update to GPL version 3. 2009-12-21 07:40:04 +00:00
Joel Brobecker 5e4bde961c * gpl.texi: Update to version 3 of the GPL. 2009-12-21 07:30:10 +00:00
gdbadmin 81b05ad359 *** empty log message *** 2009-12-21 00:00:33 +00:00
Alan Modra cc99a2f7d0 daily update 2009-12-20 23:00:04 +00:00
Michael Snyder 6c10c06bd8 2009-12-20 Michael Snyder <msnyder@vmware.com>
* amd64-tdep.c (amd64_epilogue_frame_cache): Fix buf size.
2009-12-20 19:09:37 +00:00
Joel Brobecker d53a7b30c1 * Makefile.in gdb.ada/gnat_ada.gpr, gdb.base/gcore-buffer-overflow.c,
gdb.base/gcore-buffer-overflow.exp, gdb.base/source-error.gdb,
        gdb.base/watch_thread_num.c, gdb.java/jprint.java,
        gdb.mi/mi-async.exp, gdb.modula2/unbounded-array.exp,
        gdb.modula2/unbounded1.c: Update copyright header.
2009-12-20 11:55:25 +00:00
Joel Brobecker a17152447c * Makefile.in: Update copyright header.
* observer.texi: Fix the copyright header of the generated files.
2009-12-20 11:53:08 +00:00
Joel Brobecker dcf7800bb5 * darwin-nat-info.c, solib-spu.c, spu-multiarch.c,
regformats/regdat.sh, features/Makefile: Update copyright header.
2009-12-20 11:51:30 +00:00
gdbadmin 990345b48b *** empty log message *** 2009-12-20 00:00:33 +00:00
Alan Modra bc2739a238 daily update 2009-12-19 23:00:04 +00:00
Doug Evans e3ea77accc * gas/xc16x/xc16x.exp (*): Add missing " in timeout cases. 2009-12-19 19:34:07 +00:00
H.J. Lu 2426c15ff8 Replace VexNDS, VexNDD and VexLWP with VexVVVV.
gas/

2009-12-19  H.J. Lu  <hongjiu.lu@intel.com>

	* config/tc-i386.c (process_operands): Check vexvvvv instead
	of vexnds and vexndd.
	(build_modrm_byte): Check vexvvvv instead of vexnds, vexndd
	and vexlwp.

opcodes/

2009-12-19  H.J. Lu  <hongjiu.lu@intel.com>

	* i386-gen.c (opcode_modifiers): Remove VexNDS, VexNDD and
	VexLWP.  Add VexVVVV.

	* i386-opc.h (VexNDS): Removed.
	(VexNDD): Likewise.
	(VexLWP): Likewise.
	(VEXXDS): New.
	(VEXNDD): Likewise.
	(VEXLWP): Likewise.
	(VexVVVV): Likewise.
	(i386_opcode_modifier): Remove vexnds, vexndd and vexlwp.
	Add vexvvvv.

	* i386-opc.tbl: Replace VexNDS with VexVVVV=1, VexNDD with
	VexVVVV=2 and VexLWP with VexVVVV=3.
	* i386-tbl.h: Regenerated.
2009-12-19 18:36:27 +00:00
Doug Evans e946488510 * event-loop.c: Include unistd.h if it exists. 2009-12-19 01:24:51 +00:00
Doug Evans 07d4f67e9d * linux-low.c (my_waitpid): Move definition away from being in
between linux_tracefork_child/linux_test_for_tracefork.
2009-12-19 01:16:23 +00:00
Maciej W. Rozycki f19732033a * arm-linux-tdep.c (ARM_OABI_SYSCALL_RESTART_SYSCALL): New macro.
(ARM_LDR_PC_SP_12): Likewise.
	(arm_linux_restart_syscall_init): New function.
	(arm_linux_restart_syscall_tramp_frame): New variable.
	(arm_linux_init_abi): Install the
	arm_linux_restart_syscall_tramp_frame unwinder.
2009-12-19 00:40:15 +00:00
Doug Evans 00f515dab6 gdb/
* gdb_proc_service.h (psaddr_t): Fix type.
	* linux-thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
	signature to match glibc.
	(thread_db_get_thread_local_address): Use psaddr_t for type of
	address to match parameter of td_thr_tls_get_addr_p.
	Cast through psaddr_t instead of (void*) to match parameter of
	td_thr_tls_get_addr_p.

	gdbserver/
	* gdb_proc_service.h (psaddr_t): Fix type.
	* thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
	signature to match glibc.
2009-12-19 00:29:11 +00:00
Maciej W. Rozycki 42853c79aa * gas/mips/eret-2.s: Add an instruction to fill a branch delay
slot.
	* gas/mips/eret-2.d: Adjust accordingly.
2009-12-19 00:24:09 +00:00
Maciej W. Rozycki 7c0fc5246b gas/
* config/tc-mips.c (s_mips_ent): Also set BSF_FUNCTION for
	".aent".

	gas/testsuite/
	* gas/mips/aent.d: New test.
	* gas/mips/aent.s: Source for the new test.
	* gas/mips/mips.exp: Run it.
2009-12-19 00:21:29 +00:00
gdbadmin dc89be0992 *** empty log message *** 2009-12-19 00:00:32 +00:00
Alan Modra 2fec914494 daily update 2009-12-18 23:00:04 +00:00
H.J. Lu 94ff3a50d8 Move Imm1 before Imm8.
2009-12-18  H.J. Lu  <hongjiu.lu@intel.com>

	* i386-gen.c (operand_types): Move Imm1 before Imm8.
2009-12-18 21:07:58 +00:00
Steve Ellcey fd4db1a12f 2009-12-18 Steve Ellcey <sje@cup.hp.com>
* config/tc-hppa.c: Change access to access_ctr.
2009-12-18 18:11:56 +00:00
Ulrich Weigand 0675e18865 include/elf/
* common.h (NT_S390_HIGH_GPRS): Define.

bfd/
	* elf.c (elfcore_grok_s390_high_gprs): New function.
	(elfcore_grok_note): Handle NT_S390_HIGH_GPRS notes.
	(elfcore_write_s390_high_gprs): New function.
	(elfcore_write_register_note): Call it.

binutils/
	* readelf.c (get_note_type): Handle NT_S390_HIGH_GPRS notes.
2009-12-18 16:21:51 +00:00
Ben Elliston 06ca79620f * config.sub, config.guess: Update from upstream sources. 2009-12-18 03:39:58 +00:00
Stan Shebs e8595ef618 2009-12-17 Stan Shebs <stan@codesourcery.com>
* breakpoint.c (bpstat_check_location): Check for tracepoints.
2009-12-18 00:36:47 +00:00
gdbadmin 182145a847 *** empty log message *** 2009-12-18 00:00:02 +00:00
Michael Snyder a38bba38eb 2009-12-16 Michael Snyder <msnyder@vmware.com>
* i386-tdep.c (i386_process_record): Reformat comments.
2009-12-17 23:41:07 +00:00
Alan Modra dde632d37b daily update 2009-12-17 23:00:04 +00:00
Jeff Johnston 30a16d7b28 2009-12-17 Jeff Johnston <jjohnstn@redhat.com>
* COPYING.NEWLIB: Update copyright date.
        * COPYING.LIBGLOSS: Ditto.
2009-12-17 21:12:49 +00:00
Dave Korn 9dda37c1b4 * pe-dll.c (generate_reloc): Take account of wrapper options when
testing if a weak symbol is defined or not, and when it is not,
	consider whether the default value requires a base reloc anyway.
2009-12-17 19:51:35 +00:00
Dave Korn b41d91a7bc * deffilep.y (def_file_free): Add missing shadow parameter renaming.
(def_file_print): Likewise.
	(def_stash_module): Likewise.
	(def_file_add_import): Likewise.
2009-12-17 19:33:59 +00:00
Rafael Ávila de Espíndola d675ff4684 2009-12-17 Rafael Avila de Espindola <espindola@google.com>
* Makefile.am (CCFILES): Add timer.cc.
	(HFILES): Add timer.h.
	* configure.ac: Check for sysconf and times.
	* main.cc: include timer.h.
	(main): Use Timer instead of get_run_time.
	* timer.cc: New.
	* timer.h: New.
	* workqueue.cc: include timer.h.
	(Workqueue::find_and_run_task):
	Report user, sys and wall time.
	* Makefile.in: Regenerate.
	* config.in: Regenerate.
	* configure: Regenerate.
2009-12-17 16:02:03 +00:00
Nick Clifton ff4a8d2b93 PR binutils/10924
* config/tc-arm.c (do_ldstv4): Do not allow r15 as the destination
        register.
        (do_mrs): Likewise.
        (do_mul): Likewise.

        * arm-dis.c: Add support for %<>ru and %<>rU formats to enforce
        unique register numbers.  Extend support for %<>R format to
        thumb32 and coprocessor instructions.

        * gas/arm/unpredictable.s: Add more unpredictable instructions.
        * gas/arm/unpredictable.d: Add expected disassemblies.
2009-12-17 09:52:18 +00:00
Alan Modra 32af9f6e55 PR ld/11088
include/elf/
	* ppc.h (R_PPC_RELAX32, R_PPC_RELAX32PC, R_PPC_RELAX32_PLT,
	R_PPC_RELAX32PC_PLT): Delete.
	(R_PPC_RELAX, R_PPC_RELAX_PLT, R_PPC_RELAX_PLTREL24): Define.
bfd/
	* elf32-ppc.c (update_plt_info): Clear sec here when addend is
	less than 32768..
	(ppc_elf_check_relocs): ..rather than doing so here.  Ignore new
	relax relocs.
	(ppc_elf_gc_sweep_hook): Don't segfault when symbol hiding has
	removed plt_entry records.
	(ppc_elf_tls_setup): Handle PIE calls to __tls_get_addr correctly.
	(ppc_elf_tls_optimize): Likewise.  Also dec __tls_get_addr refcount
	when optimizing code using new tlsgd and tlsld marker relocs.
	(ppc_elf_relax_section): Differentiate relaxed PLTREL24 relocs
	from ADDR24 relocs using plt or glink.  Don't clear the addend
	for R_PPC_RELAX_PLTREL24.
	(ppc_elf_relocate_section): Correctly handle addends on relaxed
	PLTREL24 relocs.
2009-12-17 05:45:25 +00:00
Alan Modra 7c6c17221f PR ld/11088
* elf64-ppc.c (ppc64_elf_gc_sweep_hook): Don't abort if symbol
	hiding has nulled out plt.plist.
2009-12-17 00:07:38 +00:00
gdbadmin 6e8144b75f *** empty log message *** 2009-12-17 00:00:34 +00:00
Doug Kwan d6344fb5ba 2009-12-16 Doug Kwan <dougkwan@google.com>
* arm.cc (Arm_relobj::scan_sections_for_stubs): Exclude ICF-eliminated
	sections.
	* object.cc (Sized_relobj::do_finalize_local_symbols): Handle
	relaxed input sections.
	* output.cc (Output_section::find_relaxed_input_section): Change
	return type to Output_relaxed_input_section pointer.  Adjust code
	for new type of relaxed_input_section_map_.
	* output.h (Output_section::find_relaxed_input_section): Change
	return type to Output_relaxed_input_section pointer.
	(Output_section::Output_relaxed_input_section_by_input_section_map):
	New type.
	(Output_section::relaxed_input_section_map_): Change type to
	Output_section::Output_relaxed_input_section_by_input_section_map.
	* symtab.cc (Symbol_table::compute_final_value): Handle relaxed
	input section.
2009-12-17 00:00:26 +00:00
Alan Modra 21f8908e38 daily update 2009-12-16 23:00:04 +00:00
Doug Evans 1de1badb7a * linux-low.c (linux_read_memory): Fix argument to read. 2009-12-16 21:23:34 +00:00