Commit Graph

56079 Commits

Author SHA1 Message Date
Alan Modra 0efedc4ca3 * Makefile.am (INCLUDES, DEP_INCLUDES): Remove -D_GNU_SOURCE.
Run "make dep-am".
	* configure.in: Invoke AC_GNU_SOURCE.
	* Makefile.in: Regenerate.
	* config.in: Regenerate.
	* configure: Regenerate.
2007-10-24 04:55:39 +00:00
Alan Modra ee1dbd7def * Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
	* po/POTFILES.in: Regenerate.
2007-10-24 04:55:01 +00:00
Alan Modra dd32307890 * Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
	* po/SRC-POTFILES.in: Regenerate.
2007-10-24 04:54:38 +00:00
Alan Modra 50e3244d18 * strings.c (print_strings): Don't use %L, use %ll in printf
format strings.
2007-10-24 03:55:46 +00:00
Alan Modra 20737c135d * readelf.c (process_program_headers): Use dynamic segment unless
dynamic section is found.
2007-10-24 02:27:15 +00:00
gdbadmin dc29b2f9c8 *** empty log message *** 2007-10-24 00:00:35 +00:00
Alan Modra 2de39ffda3 daily update 2007-10-24 00:00:05 +00:00
H.J. Lu ad19981d72 gas/testsuite/
2007-10-23  H.J. Lu  <hongjiu.lu@intel.com>

	* gas/i386/katmai.s: Remove cmpps opcode test.

	* gas/i386/simd.s: Add tests for cmpss and cmpsd.
	* gas/i386/x86-64-simd.s: Likewise.

	* gas/i386/katmai.d: Updated.
	* gas/i386/simd-intel.d: Likewise.
	* gas/i386/simd-suffix.d: Likewise.
	* gas/i386/simd.d: Likewise.
	* gas/i386/x86-64-simd-intel.d: Likewise.
	* gas/i386/x86-64-simd-suffix.d: Likewise.
	* gas/i386/x86-64-simd.d: Likewise.

opcodes/

2007-10-23  H.J. Lu  <hongjiu.lu@intel.com>

	* i386-dis.c (OP_SIMD_Suffix): Renamed to ...
	(CMP_Fixup): This.  Rewrite.
	(OPSIMD): Renamed to ...
	(CMP): This. Updated.
	(prefix_table): Update PREFIX_0FC2 entry.
2007-10-23 22:52:09 +00:00
Daniel Jacobowitz 62a24a2b2b * gdb.threads/multi-create.c, gdb.threads/multi-create.exp: New. 2007-10-23 20:17:55 +00:00
Daniel Jacobowitz 24a09b5f37 * inferiors.c (change_inferior_id): Delete.
(add_pid_to_list, pull_pid_from_list): New.
	* linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
	(PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
	(PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
	(PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
	(PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
	(PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
	(stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
	(using_threads): Always set to 1.
	(handle_extended_wait): New.
	(add_process): Do not set TID.
	(linux_create_inferior): Set must_set_ptrace_flags.
	(linux_attach_lwp): Remove TID argument.  Do not check using_threads.
	Use PTRACE_SETOPTIONS.  Call new_thread_notify.  Update all callers.
	(linux_thread_alive): Rename TID argument to LWPID.
	(linux_wait_for_process): Handle unknown processes.  Do not use TID.
	(linux_wait_for_event): Do not use TID or check using_threads.  Update
	call to dead_thread_notify.  Call handle_extended_wait.
	(linux_create_inferior): Use PTRACE_SETOPTIONS.
	(send_sigstop): Delete sigstop_sent.
	(wait_for_sigstop): Avoid TID.
	(linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
	(linux_test_for_tracefork): New.
	(linux_lookup_signals): Use thread_db_active and
	linux_supports_tracefork_flag.
	(initialize_low): Use thread_db_active and linux_test_for_tracefork.
	* linux-low.h (get_process_thread): Avoid TID.
	(struct process_ifo): Move thread_known and tid to the end.  Remove
	sigstop_sent.
	(linux_attach_lwp, thread_db_init): Update prototypes.
	* server.h (change_inferior_id): Delete prototype.
	(add_pid_to_list, pull_pid_from_list): New prototypes.
	* thread-db.c (thread_db_use_events): New.
	(find_first_thread): Rename to...
	(find_one_thread): ...this.  Update callers and messages.  Do not
	call fatal.  Check thread_db_use_events.  Do not call
	change_inferior_id or new_thread_notify.
	(maybe_attach_thread): Update.  Do not call new_thread_notify.
	(thread_db_init): Set thread_db_use_events.  Check use_events.
	* utils.c (fatal, warning): Correct message prefix.
2007-10-23 20:05:03 +00:00
Daniel Jacobowitz 3d5f6d122e 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
* mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
	(deal_with_atomic_sequence): New.
	(mips_software_single_step): Use it.
2007-10-23 13:11:47 +00:00
Alan Modra f94498ff0f * elf64-ppc.c (ppc_build_one_stub): Don't duplicate relocs
emitted for ".brlt" entries.
	(toc_adjusting_stub_needed): Don't treat ".fixup" specially here..
	(ppc64_elf_next_input_section): ..instead do so here.
2007-10-23 12:54:17 +00:00
Daniel Jacobowitz 7b3200f9ae PR gdb/2336
* Makefile.def (dependencies): Make configure-gdb depend on
	all-intl.
	* Makefile.in: Regenerated.

	* configure.ac: Modify $LIBINTL before the BFD check.
	* configure: Regenerated.
2007-10-23 12:34:18 +00:00
Joel Brobecker 89ba75b1ec * buildsym.c (free_pending_blocks): Remove commented-out code.
(make_blockvector): Likewise. Re-use free_pending_blocks.
        (end_symtab): Remove commented-out code.
2007-10-23 12:04:57 +00:00
Ian Lance Taylor 35cdfc9a87 Add support for PT_GNU_STACK. 2007-10-23 05:05:48 +00:00
Alan Modra 5cab600649 daily update 2007-10-23 00:00:06 +00:00
gdbadmin 5ba658ae91 *** empty log message *** 2007-10-23 00:00:03 +00:00
Ian Lance Taylor 46fe162319 Fix versions of copied symbols. 2007-10-22 23:08:22 +00:00
Richard Sandiford 60dc88db8b sim/mips/
* mips.igen (check_fmt_p): Provide a separate mips32r2 definition
	that unconditionally allows fmt_ps.
	(ALNV.PS, CEIL.L.fmt, CVT.L.fmt, CVT.PS.S, CVT.S.PL, CVT.S.PU)
	(FLOOR.L.fmt, LWXC1, MADD.fmt, MSUB.fmt, NMADD.fmt, NMSUB.fmt)
	(PLL.PS, PLU.PS, PUL.PS, PUU.PS, ROUND.L.fmt, TRUNC.L.fmt): Change
	filter from 64,f to 32,f.
	(PREFX): Change filter from 64 to 32.
	(LDXC1, LUXC1): Provide separate mips32r2 implementations
	that use do_load_double instead of do_load.  Make both LUXC1
	versions unpredictable if SizeFGR () != 64.
	(SDXC1, SUXC1): Extend to mips32r2, using do_store_double
	instead of do_store.  Remove unused variable.  Make both SUXC1
	versions unpredictable if SizeFGR () != 64.
2007-10-22 20:02:25 +00:00
H.J. Lu 92fddf8e3d 2007-10-22 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (prefix_table): Reordered by opcode.
	(mod_table): Likewise.
2007-10-22 19:22:01 +00:00
Ian Lance Taylor 6161122258 Implement -Bstatic/-Bdynamic. 2007-10-22 18:04:43 +00:00
Ian Lance Taylor ee6d2efee9 Correct locking if a file could not be opened. 2007-10-22 18:02:36 +00:00
Hans-Peter Nilsson 9538c15c36 * sim/cris/asm/testutils.inc (test_move_cc): Add missing call to
test_cc.
	* sim/cris/asm/asr.ms: Correct expected condition code flags.
	* sim/cris/asm/boundr.ms: Ditto.
	* sim/cris/asm/dstep.ms: Ditto.
	* sim/cris/asm/lsr.ms: Ditto.
	* sim/cris/asm/movecr.ms: Ditto.
	* sim/cris/asm/mover.ms: Ditto.
	* sim/cris/asm/neg.ms: Ditto.  Use test_cc, not test_move_cc.
	* sim/cris/asm/op3.ms: Check the condition code flags after the insn
	under test.
	* sim/cris/asm/movecrt10.ms: Update expected number of simulated
	cycles.
	* sim/cris/asm/movecrt32.ms: Ditto.
	* sim/cris/asm/jsr.ms: Don't use local label 8.
	* sim/cris/asm/nonvcv32.ms: New test.
2007-10-22 16:49:25 +00:00
Daniel Jacobowitz 57ee890f2f * top.c (command_loop): Fix output for shrinkage. 2007-10-22 16:11:13 +00:00
Daniel Jacobowitz 44742d57fb * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
(exp): Remove and document function-like casts.
2007-10-22 16:07:13 +00:00
Hans-Peter Nilsson c9b3544ace * cris/arch.c, cris/arch.h, cris/cpuall.h, cris/cpuv10.c,
cris/cpuv10.h, cris/cpuv32.c, cris/cpuv32.h, cris/cris-desc.c,
	cris/cris-desc.h, cris/cris-opc.h, cris/decodev10.c,
	cris/decodev10.h, cris/decodev32.c, cris/decodev32.h,
	cris/modelv10.c, cris/modelv32.c, cris/semcrisv10f-switch.c,
	cris/semcrisv32f-switch.c: Regenerate.
2007-10-22 16:06:38 +00:00
Hans-Peter Nilsson a69f60de1a * cris.cpu (movs, movu): Use result of extension operation when
updating flags.
2007-10-22 16:04:43 +00:00
Daniel Jacobowitz f88e9fd315 * cp-support.c: Include "safe-ctype.h".
(cp_already_canonical): New function.
	(cp_canonicalize_string): Use it.  Return NULL for already canonical
	strings.
	(mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
	(cp_func_name, remove_params): Likewise.
	(cp_find_first_component_aux): Use ISSPACE.
	* cp-support.h (cp_demangled_name_to_comp): Correct comment.  Remove
	MEMORY_P argument.
	* cp-name-parser.y (ALLOC_CHUNK): Define.
	(struct demangle_info): Add PREV and NEXT.  Increase the size of
	COMPS.
	(d_grab): Convert to a function.
	(allocate_info): Rewrite.
	(cp_demangled_name_to_comp): Remove MEMORY argument.  Do not use
	strlen.  Update call to allocate_info.  Do not free it on failure.
	(main): Update calls to cp_demangled_name_to_comp.
	* Makefile.in (cp-support.o): Update.
2007-10-22 14:37:36 +00:00
Ulrich Weigand e35879dbf0 * gdbarch.texi (Compiler Characteristics): Move documentation
of set_gdbarch_sofun_address_maybe_missing back to ...
	(Target Conditionals): ... here to fix build break.
2007-10-22 14:25:13 +00:00
Ulrich Weigand e9a4730f82 2007-10-22 Markus Deuling <deuling@de.ibm.com>
* std-regs.c (value_of_builtin_frame_fp_reg)
	value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
	value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
	current architecture by frame_info.
2007-10-22 14:13:19 +00:00
Ulrich Weigand 6bcde365c7 2007-10-22 Markus Deuling <deuling@de.ibm.com>
* reggroups.c (default_register_reggroup_p): Replace current_gdbarch
	by gdbarch.
2007-10-22 14:11:11 +00:00
Ulrich Weigand a4bd449d32 2007-10-22 Markus Deuling <deuling@de.ibm.com>
* infcmd.c (default_print_registers_info, print_return_value)
	(print_vector_info, print_float_info): Replace current_gdbarch by
	gdbarch.
	(registers_info): Use get_frame_arch to get at the current
	architecture by frame_info.
2007-10-22 14:09:17 +00:00
Ulrich Weigand e071d1f674 2007-10-22 Markus Deuling <deuling@de.ibm.com>
* i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
	get_regcache_arch to get at the current architecture by regcache.
2007-10-22 14:04:42 +00:00
Ulrich Weigand f8d2990873 2007-10-22 Markus Deuling <deuling@de.ibm.com>
* target.c (debug_print_register): Use get_regcache_arch to get at the
	current architecture by regcache.
2007-10-22 14:03:37 +00:00
Daniel Jacobowitz 39cbfefa3a * dwarf2read.c (read_file_scope): Add a comment.
(dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
	(read_enumeration_type, process_enumeration_scope, read_array_type)
	(read_typedef, read_base_type, read_subrange_type)
	(read_unspecified_type): Use dwarf2_name.
2007-10-22 03:01:00 +00:00
Daniel Jacobowitz fe3e1990b3 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
* dwarf2read.c (dwarf2_free_objfile): New.
	* elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
	* symfile.h (dwarf2_free_objfile): Declare.
2007-10-22 01:16:34 +00:00
gdbadmin af81c53cb7 *** empty log message *** 2007-10-22 00:00:33 +00:00
Joel Brobecker 261224b2fd * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon. 2007-10-22 00:00:07 +00:00
Alan Modra dd8de1a32e daily update 2007-10-22 00:00:05 +00:00
Luis Machado 9274a07c1a * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
(rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
      default dwarf2_frame_set_init_reg function.
2007-10-21 20:04:47 +00:00
Ulrich Weigand e7b1eae683 * gdb.arch/altivec-abi.exp (compile_flags): Use -mabi=altivec when
compiling test case with GCC.
	* gdb.arch/altivec-regs.exp (compile_flags): Likewise.
2007-10-21 12:28:00 +00:00
Ulrich Weigand c641edccb5 * gdb.arch/altivec-regs.exp (decimal_vector): Adjust for output
format changes.
2007-10-21 12:24:34 +00:00
Pedro Alves 430ebac964 * NEWS: Mention native MinGW configuration. 2007-10-21 10:27:49 +00:00
Alan Modra a190e9e3e6 daily update 2007-10-21 00:00:05 +00:00
gdbadmin b0a2997c4c *** empty log message *** 2007-10-21 00:00:02 +00:00
Ian Lance Taylor 291eaac6ab From Craig Silverstein: add cast to avoid warning. 2007-10-20 04:35:43 +00:00
Ian Lance Taylor f389a824b8 From Craig Silverstein: handle PLT32 relocs against local symbols for
x86_64.
2007-10-20 04:33:21 +00:00
Ian Lance Taylor df2efe713a Handle PLT32 against local symbols. 2007-10-20 00:33:31 +00:00
Alan Modra 342dae88a7 daily update 2007-10-20 00:00:05 +00:00
gdbadmin f9f8cdf6e0 *** empty log message *** 2007-10-20 00:00:03 +00:00