Commit Graph

25103 Commits

Author SHA1 Message Date
Pierre Muller 5aafa1cc49 ARI fix: OP eol rule.
* blockframe.c (find_pc_partial_function): Avoid operator at end of
	line.
	* buildsym.c (find_symbol_in_list): Idem.
	(start_subfile, patch_subfile_names): Idem.
	* c-exp.y (variable, yylex): Idem.
	* c-typeprint.c (c_print_type, c_type_print_base): Idem.
	* c-valprint.c (c_val_print): Idem.
	* coffread.c (patch_opaque_types, process_coff_symbol): Idem.
	* corelow.c (core_open): Idem.
	* cris-tdep.c (move_reg_to_mem_movem_op): Idem.
	* cli/cli-decode.c (help_cmd_list, find_command_name_length): Idem.
2009-10-06 22:47:20 +00:00
Pierre Muller f8bf576366 ARI fix: OP eol rule.
* ada-exp.y (block_lookup): Avoid operator at end of line.
	* aix-thread.c (pd_enable): Idem.
	* alpha-tdep.c (alpha_next_pc): Idem.
	* arm-tdep.c (arm_skip_prologue, arm_scan_prologue): Idem.
	(condition_true, coff_sym_is_thumb): Idem.
2009-10-06 21:27:59 +00:00
Michael Eager 08be9d7117 * info (Contributors): Add self for Xilinx MicroBlaze.
(Embedded Processors): Add MicroBlaze.
(MicroBlaze): New.  Describe Xilinx MicroBlaze
2009-10-06 18:02:36 +00:00
gdbadmin 0969f4e9e5 GDB 7.0 released. 2009-10-06 17:40:34 +00:00
Joel Brobecker 37e5cb2bc7 Minor reformatting of the last entry. 2009-10-06 16:04:05 +00:00
Pierre Muller 67e5d36c36 * ARI fix: "%p" rule.
target.c (debug_to_thread_architecture): Replace %p by %s using
	host_address_to_string function.
2009-10-06 15:32:18 +00:00
Pierre Muller 2b0adecd0d * gdb.base/annota1.exp: Remove obsolete match_max increase.
* gdb.base/annota3.exp: Idem.
	* gdb.base/maint.exp: Idem.
2009-10-06 15:12:06 +00:00
Tristan Gingold 15c19d39c2 2009-10-06 Tristan Gingold <gingold@adacore.com>
* darwin-nat.c: Add __TEXT __info_plist content.
	(darwin_attach_pid): Update error message.
2009-10-06 07:23:05 +00:00
Joel Brobecker 3e6b03994f * MAINTAINERS: Add Tristan Gingold as Maintainer of the Darwin port. 2009-10-06 05:14:46 +00:00
Joel Brobecker 606139a190 * MAINTAINERS: Add Jan Kratochvil as Maintainer of the ia64 target. 2009-10-06 02:56:04 +00:00
gdbadmin 852164b6e8 *** empty log message *** 2009-10-06 00:00:34 +00:00
Pedro Alves 5b564bb74d Revert:
2009-10-04  Pedro Alves  <pedro@codesourcery.com>
	* gdbinit.in: Set data-directory to @srcdir@.
2009-10-05 13:46:52 +00:00
Pierre Muller 8d417781d6 * lib/gdb.exp (default_gdb_init): Set current value of match_max
to default.
2009-10-05 06:27:46 +00:00
gdbadmin b46dc4e34b *** empty log message *** 2009-10-05 00:00:34 +00:00
Pedro Alves 11ade57aac * NEWS: Mention non-stop mode. 2009-10-04 17:39:30 +00:00
Pedro Alves 08a0efd07a * gdb.texinfo (Remote Protocol): Don't mention vCont;T. 2009-10-04 17:37:57 +00:00
Pedro Alves d166c213e0 * gdbinit.in: Set data-directory to @srcdir@. 2009-10-04 13:50:08 +00:00
gdbadmin 000d2dc969 *** empty log message *** 2009-10-04 00:00:03 +00:00
gdbadmin 180db4b511 *** empty log message *** 2009-10-03 00:00:03 +00:00
Pierre Muller e1b52ce2c9 * remove unwanted directory parts 2009-10-02 22:39:41 +00:00
Pierre Muller bb61102ddc * lib/gdb.exp (gdb_compile): Add --enable-auto-import option for
mingw and cygwin targets.
2009-10-02 22:25:26 +00:00
Pierre Muller ace5c364a5 * lib/gdb.exp (gdb_compile): Avoid adding
gdb_saved_unbuffered_mode_obj if -nostdlib option is used.
2009-10-02 21:28:34 +00:00
Pedro Alves ca2163eb33 * linux-nat.c (TRAP_IS_SYSCALL, TRAP_REMOVE_SYSCALL_FLAG): Delete.
(SYSCALL_SIGTRAP): New.
	(status_to_str): Adjust.
	(get_pending_status): Pending events in lp->waitstatus don't map
	to any signal.  Simplify.
	(linux_handle_syscall_trap): New.
	(linux_handle_extended_wait): When handling PTRACE_EVENT_CLONE
	events, use linux_ops->to_resume instead of direct ptrace with
	PTRACE_CONT.  Remove all TRAP_IS_SYSCALL handling.
	(wait_lwp): Handle syscall traps with linux_handle_syscall_trap,
	and clear the sysgood bit.
	(status_callback): Make it clearer and add comments.
	(cancel_breakpoints_callback): Ignore if LP has waitstatus set.
	(linux_nat_filter_event): Handle syscall traps with
	linux_handle_syscall_trap, and clear the sysgood bit.  Move the
	check for storing siginfo to after handling extended statuses and
	syscall traps.  Store status in the lwp object.
	(linux_wait_1): Don't swap the pending status out of the lwp
	object until after deciding we found an lwp with an interesting
	event.  Requeue a new pending signal if we find one while getting
	rid or a pending SIGSTOP we sent ourselves.  Don't clear the
	sysgood bit here.

	* infrun.c (deal_with_syscall_event): Rename to ...
	(handle_syscall_event): ... this.  Always context switch and set
	stop_pc, even if not catching the syscall.  If not catching the
	syscall, always resume with keep_going.
	(handle_inferior_event): Adjust.
2009-10-02 16:51:04 +00:00
Jan Kratochvil a71e0887e3 gdb/
Fix compatibility of --with-system-readline and readline-6.0+.
	* configure.ac <--with-system-readline> (for readline_echoing_p): New
	test.
	* config.in: Regenerate.
	* configure: Regenerate.
2009-10-02 16:02:34 +00:00
gdbadmin a263f14bb3 *** empty log message *** 2009-10-02 00:00:33 +00:00
Joel Brobecker c838b5167a * MAINTAINERS: Move Don Lee to the correct section (Write After
Approval).
2009-10-01 23:11:02 +00:00
Pierre Muller c2d494a019 * src/gdb/testsuite/gdb.base/shr1.c: Use %p in format string.
* src/gdb/testsuite/gdb.base/unload.c: Avoid warning in fprintf.
	* src/gdb/testsuite/gdb.base/watchpoint-solib.c: Idem.
2009-10-01 21:33:24 +00:00
Phil Muldoon 2f2da8f6fb 2009-10-01 Phil Muldoon <pmuldoon@redhat.com>
* infcall.c (call_function_by_hand): Add a new cleanup branch for
	std::terminate breakpoints.
2009-10-01 20:09:21 +00:00
Pierre Muller 209f53f524 * gdb.base/fileio.c (test_lseek): typecast ofs_t ret variable to
long type.
	(test_unlink): Correct printf string.
	* gdb.base/checkpoint.c (main): Correct fprintf string for variable i.
	* gdb.threads/attachstop-mt.c: Add #include <string.h>.
2009-10-01 15:39:13 +00:00
gdbadmin 7cacf37ef6 *** empty log message *** 2009-10-01 00:00:33 +00:00
gdbadmin b41791fe4d *** empty log message *** 2009-09-30 00:00:03 +00:00
Jan Kratochvil 8172766a93 gdb/testsuite/
* gdb.base/breakpoint-shadow.exp: Move the ia64 part into ...
	* gdb.arch/ia64-breakpoint-shadow.exp: ... a new file, with new tests.
	* gdb.arch/ia64-breakpoint-shadow.S: New file.
2009-09-29 19:24:46 +00:00
Ulrich Weigand 0f73703cc3 * gdb.objc/basicclass.exp: Disable pending breakpoint query.
* gdb.objc/nondebug.exp: Likewise.
2009-09-29 19:02:22 +00:00
Jan Kratochvil e453266f58 gdb/
* ia64-tdep.c (ia64_convert_from_func_ptr_addr): New variable buf.
	Check first the descriptor memory is readable.
2009-09-29 16:27:05 +00:00
Tom Tromey 31158f0e2a * python/py-value.c (valpy_string): NULL-terminate 'keywords'. 2009-09-29 15:13:45 +00:00
Ulrich Weigand b32306caf4 * gdb.base/watchpoints.exp: Respect gdb,no_hardware_watchpoints
target_info setting.

	* gdb.threads/thread-specific.exp (get_thread_list): Support targets
	that detect new threads during "info threads".
2009-09-29 13:02:58 +00:00
Ulrich Weigand beaabab239 * s390-tdep.c (s390_displaced_step_fixup): Use type ULONGEST
instead of CORE_ADDR for "amode".
2009-09-29 12:51:34 +00:00
Joel Brobecker ca8b503212 * ia64-tdep.c: Update the comments on how we insert/remove
breakpoints for L-X instructions.
        (ia64_memory_insert_breakpoint, ia64_memory_remove_breakpoint):
        Update the comments inside these functions.
2009-09-29 01:25:37 +00:00
Ulrich Weigand 99e4058030 * gdbarch.sh (displaced_step_hw_singlestep): New callback.
* gdbarch.c, gdbarch.h: Regenerate.
	* arch-utils.c (default_displaced_step_hw_singlestep): New function.
	* arch-utils.h (default_displaced_step_hw_singlestep): Add prototype.

	* ppc-linux-tdep.c (ppc_displaced_step_hw_singlestep): New function.
	(rs6000_gdbarch_init): Install it.

	* infrun.c (displaced_step_fixup): Use new callback to determine
	whether to "step" or "continue" displaced copy.
	(resume): Likewise.  Do not call maybe_software_singlestep
	for displaced stepping.
	(maybe_software_singlestep): Do not handle displaced stepping.
2009-09-29 00:53:04 +00:00
Ulrich Weigand 69368a60a4 * eval.c (evaluate_subexp_standard) [OP_OBJC_MSGCALL]: Support
platforms that use function descriptors.  Prefer to use function
	pointer types instead of function types.
	* linespec.c (decode_objc): Support function descriptors.  Fully
	initialize SAL result.
	* objc-lang.c (find_methods): Support function descriptors.
	Do not require function symbol to point to text section.

	* ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): When calling
	via a function pointer, use the descriptor it points to.
2009-09-29 00:48:32 +00:00
gdbadmin 8f9e1f0ef3 *** empty log message *** 2009-09-29 00:00:03 +00:00
Joel Brobecker 73a9714c1a Fix ia64 breakpoints in the L-X slot.
* ia64-tdep.c (ia64_memory_insert_breakpoint): Extend the comment.
        New variable shadow_slotnum, use it appropriately instead of slotnum.
        Move shadow_len initialization before SLOTNUM adjustment, cover now the
        whole remaining bundle.  Error now on breakpoints requested for the
        slot 2 of L-X bundles.  Better sanity check the requested slot 1 of L-X
        bundles.
        (ia64_memory_remove_breakpoint): New variable shadow_slotnum, use it
        appropriately instead of slotnum.  Warn now on breakpoints requested
        for the slot 2 of L-X bundles.  Better sanity check the requested slot
        1 of L-X bundles.  Update the assertio check of PLACED_SIZE.
        (ia64_breakpoint_from_pc): New variable shadow_slotnum, use it
        appropriately instead of slotnum.  Move *lenptr initialization before
        SLOTNUM adjustment, cover now the whole remaining bundle.  Error now
        on breakpoints requested for the slot 2 of L-X bundles.  Better sanity
        check the requested slot 1 of L-X bundles.  Simplify the returned
        expression.
2009-09-28 23:54:01 +00:00
Joel Brobecker 35ec2a3e66 * ia64-tdep.c (ia64_memory_insert_breakpoint): Check the slotnum
and the type of instruction before deciding which slot to save
        in the breakpoint shadown contents.
2009-09-28 23:47:02 +00:00
Doug Evans 66d990c749 (TRAP_REMOVE_SYSCALL_FLAG): New macro.
(linux_nat_wait_1): Mask off is-syscall bit in wait status for
	TRAP_IS_SYSCALL before passing value to caller.
2009-09-28 21:09:15 +00:00
Doug Evans 206aa7673d * linux-nat.c (status_to_str): Handle TRAP_IS_SYSCALL. 2009-09-28 18:39:29 +00:00
Ulrich Weigand 2d88202ad4 * valops.c (value_assign): Respect parent offset when
assigning to a bitfield.
2009-09-28 09:16:15 +00:00
Hui Zhu 926569ae8e 2009-09-28 Hui Zhu <teawater@gmail.com>
* i386-tdep.c (i386_process_record): Remove "0x" that
	don't need.
2009-09-28 07:11:36 +00:00
gdbadmin 9188c27260 *** empty log message *** 2009-09-28 00:00:33 +00:00
Ulrich Weigand 1db4e8a0b4 * s390-tdep.c (op_bctr, op_bctgr, op_bct, op1_bctg, op2_bctg,
op_bxh, op1_bxhg, op2_bxhg, op_bxle, op1_bxleg, op2_bxleg,
	op1_brct, op2_brct, op1_brctg, op2_brctg, op_brxh, op1_brxhg,
	op2_brxhg, op_brxle, op1_brxlg, op2_brxlg): New enum values.
	(is_rsi, is_rie): New insn format decoder routines.
	(s390_displaced_step_fixup): New function.
	(s390_gdbarch_init): Install displaced stepping routines.
2009-09-27 20:47:42 +00:00
Ulrich Weigand 1ba3a4f4b8 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*):
Add linux-tdep.o to gdb_target_obs.
	(s390*-*-*): Likewise.
2009-09-27 20:46:35 +00:00