Commit Graph

25077 Commits

Author SHA1 Message Date
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
Ulrich Weigand 4168d2d616 * spu-low.c (spu_kill): Wait for inferior to terminate.
Call clear_inferiors.
	(spu_detach): Call clear_inferiors.
2009-09-27 20:45:20 +00:00
Ulrich Weigand 0057022f7e * gdb.threads/manythreads.c (main): Increase thread stack size
to 2*PTHREAD_STACK_MIN.
	* gdb.threads/multi-create.c (main): Likewise.
	(create_function): Likewise.
2009-09-27 20:44:25 +00:00
Ulrich Weigand f29c032579 * gdb.base/dump.exp: Pass difference of pointer types instead
of integer types as offset to restore in intarr3.srec case.
2009-09-27 20:42:40 +00:00
Ulrich Weigand fcb34849df * gdb.cp/gdb2495.exp: Skip test on spu*-*-*. 2009-09-27 20:41:53 +00:00
Ulrich Weigand d5142e3b62 * gdb.base/pie-support.exp: Pass "quiet" flag to gdb_compile. 2009-09-27 20:40:23 +00:00
Don Lee 5b6912fbdb * score-tdep.c: Comment out some simulator dependent codes.
* score-tdep.h: Delete some simulator dependent macro definitions.
2009-09-27 08:45:12 +00:00
Hui Zhu 5d40bb8544 2009-09-27 Hui Zhu <teawater@gmail.com>
* record.c (record_open): Change "query" to "error".
	(cmd_record_stop): Change "query" to "printf_unfiltered".
2009-09-27 02:49:34 +00:00
gdbadmin 31892163e3 *** empty log message *** 2009-09-27 00:00:03 +00:00
Eli Zaretskii cbb8f4286f * gdb.texinfo (Cygwin Native): Mention support for Ctrl-BREAK. 2009-09-26 16:47:13 +00:00
Pierre Muller 087b74b25b gdb ChangeLog entry:
* i386-nat.c (i386_stopped_data_address): Also check that
	hitted watch register is not vacant.

	gdb/testsuite ChangeLog entry:
	New test for two watchpoints, with disabling of
	the first inserted.
	* testsuite/gdb.base/watchpoints.c: New file.
	* testsuite/gdb.base/watchpoints.exp: New file.
2009-09-26 12:08:31 +00:00
gdbadmin 661f3447b6 *** empty log message *** 2009-09-26 00:00:05 +00:00
Tom Tromey 96c07c5b96 gdb
PR python/10664:
	* language.h (struct language_defn) <la_get_string>: Add
	'char_type' argument.
	(LA_GET_STRING): Likewise.
	(default_get_string, c_get_string): Update.
	* language.c (default_get_string): Add 'char_type' argument.
	* c-valprint.c (c_textual_element_type): Rename from
	textual_element_type.  No longer static.  Update callers.
	* c-lang.h (c_textual_element_type): Declare.
	* c-lang.c (c_get_string): Add 'char_type' argument.
gdb/testsuite
	PR python/10664:
	* gdb.base/charset.exp: Test utf-16 strings with Python.
2009-09-25 21:39:53 +00:00
Tom Tromey b8899f2b68 gdb
* charset.c (iconv_open): Use UTF-16 and UTF-32, not UCS-2 and
	UCS-4.
	(iconv): Rename 'ucs_flag'.
	(GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
	* c-lang.c (charset_for_string_type): Use UTF-16 and UTF-32, not
	UCS-2 and UCS-4.
	(convert_ucn): Use UTF-32.
gdb/testsuite
	* gdb.base/charset.exp: Use UTF-16 and UTF-32, not UCS-2 and
	UCS-4.
	* gdb.base/charset.c (utf_32_string): Rename.
	(init_utf32): Rename.
	(main): Update.
2009-09-25 20:53:14 +00:00
Nick Roberts b7c313290a *** empty log message *** 2009-09-25 01:57:35 +00:00
Nick Roberts 98517b4563 Remove file. 2009-09-25 01:53:34 +00:00
gdbadmin 00ac1fbefe *** empty log message *** 2009-09-25 00:00:05 +00:00
Joel Brobecker 604ad007ee * record.c (record_open, record_store_registers, record_xfer_partial):
Replace calls to nquery by calls to query.
2009-09-24 17:58:04 +00:00
Joel Brobecker 30a4a70c9c * observer.texi (solib_unloaded): Document explicitly the fact that
this observer is called before the associated symbols are unloaded.
2009-09-24 17:49:56 +00:00
gdbadmin ffa86b03e5 *** empty log message *** 2009-09-24 00:00:34 +00:00
Tom Tromey 20bb6bc822 2009-09-23 John Wright <john.wright@hp.com>
PR gdb/10684:
	* event-top.c (command_line_handler): Terminate linebuffer before
	xstrdup.
2009-09-23 17:27:39 +00:00
gdbadmin dfc3ab44df *** empty log message *** 2009-09-23 00:00:05 +00:00
Joel Brobecker 69e2bf1796 * solib.c (solib_bfd_open): Relax a bit the compatibility check. 2009-09-22 23:03:30 +00:00
Daniel Jacobowitz c4e86dd4d0 * source.c (forget_cached_source_info): Clear last_source_visited.
(init_last_source_visited): Delete.
	(directory_command): Do not clear last_source_visited.  Call
	forget_cached_source_info only if required.
	(unset_substitute_path_command, set_substitute_path_command): Call
	forget_cached_source_info.
	* mi/mi-cmd-env.c (mi_cmd_env_dir): Do not call
	init_last_source_visited.
	* defs.h (init_last_source_visited): Delete declaration.
2009-09-22 22:34:17 +00:00
Tom Tromey 89fa5381cb PR gdb/10583:
* python/py-value.c (valpy_int): Use PyLong_FromLongLong.
	(valpy_long): Likewise.
2009-09-22 21:14:58 +00:00
Tom Tromey 329719ec1d gdb
PR python/10680:
	* eval.c (evaluate_subexp_standard) <do_call_it>: Handle internal
	functions in EVAL_AVOID_SIDE_EFFECTS case.
gdb/testsuite
	* gdb.python/py-function.exp: Add regression tests.
2009-09-22 17:39:54 +00:00
Jie Zhang a13d7b9046 * MAINTAINERS: Add myself under Write After Approval. 2009-09-22 03:22:58 +00:00