Commit Graph

25060 Commits

Author SHA1 Message Date
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
gdbadmin 80a673e889 *** empty log message *** 2009-09-22 00:00:03 +00:00
Pierre Muller bb0613a5d5 * windows-nat.c (ctrl_c_handler): Also handle CTRL_BREAK_EVENT. 2009-09-21 22:37:59 +00:00
Keith Seitz 1290797801 * cp-support.h (cp_validate_operator): Declare new function.
* cp-support.c (cp_validate_operator): New function.
	* linespec.c (decode_compound): For C++ check for a valid operator.
2009-09-21 19:46:43 +00:00
Keith Seitz 11ef0d76ab * gdb.cp/cplusfuncs.exp (do_tests): Add check for proper error message
with invalid operator.
2009-09-21 19:46:15 +00:00
Keith Seitz e8269d5fd9 * c-exp.y (qualified_name): Call CHECK_TYPEDEF before deciding
that a type is not an aggregate type.
2009-09-21 19:23:46 +00:00
Keith Seitz 3fe8f3b349 * gdb.cp/classes.exp (do_tests): Add tests to print a constructor
and destructor using typedef name of class.
	* gdb.cp/classes.cc (class Base1): Add a destructor.
	(base1): New typedef.
	(use_methods): Instanitate an object of type base1.
	* gdb.cp/templates.exp (test_template_typedef): New procedure.
	(do_tests): Call test_template_typedef.
	* gdb.cp/templates.cc (Baz::~Baz): New method.
	(intBazOne): New typedef.
	(main): Instantiate intBazOne.
2009-09-21 19:23:22 +00:00
Tom Tromey ce0420dced 2009-09-21 Jason Orendorff <jason.orendorff@gmail.com>
PR python/10666:
	* python/py-function.c (fnpy_init): Use xstrdup.
2009-09-21 16:18:42 +00:00
Jie Zhang 4f412fd0b6 * doc/gdb.texinfo: Escape "{" and "}". 2009-09-21 12:48:36 +00:00
Phil Muldoon 7a9fe1016c 2009-09-21 Phil Muldoon <pmuldoon@redhat.com>
PR python/10633

	* c-lang.c (c_printstr): Do not loop past  options->print_max when
	iterating with wchar_iterate.

2009-09-21  Phil Muldoon <pmuldoon@redhat.com>

	PR python/10633

	* gdb.python/py-prettyprint.exp (gdb_py_test_silent_cmd): New
	Function.
	(run_lang_tests): Add print elements test.
2009-09-21 09:39:53 +00:00
Phil Muldoon 2e4d963fb2 2009-09-21 Phil Muldoon <pmuldoon@redhat.com>
* python/py-value.c (valpy_getitem): Test value before allowing
	subscript operation.

2009-09-21  Phil Muldoon <pmuldoon@redhat.com>

	* gdb.python/py-value.exp (test_subscript_regression): New
	function.  Test for invalid subscripts.
	* gdb.python/py-value.c (main): Add test array, and pointer to it.
	(ptr_ref): New function.
2009-09-21 09:32:28 +00:00
Hui Zhu cdfbdf303d 2009-09-21 Hui Zhu <teawater@gmail.com>
Michael Snyder  <msnyder@vmware.com>

	* amd64-linux-tdep.c (amd64_all_but_ip_registers_record): New
	function.
	(amd64_linux_syscall_record): Call
	amd64_all_but_ip_registers_record if syscall is
	sys_rt_sigreturn.
	(AMD64_LINUX_redzone, AMD64_LINUX_xstate,
	AMD64_LINUX_frame_size): New macros.
	(amd64_linux_record_signal): New function.
	(amd64_linux_init_abi): Call set_gdbarch_process_record_signal.
2009-09-21 05:57:09 +00:00
Hui Zhu 8a2e0e28d0 2009-09-21 Hui Zhu <teawater@gmail.com>
Michael Snyder  <msnyder@vmware.com>

	* i386-linux-tdep.c (i386_all_but_ip_registers_record): New
	function.
	(i386_linux_intx80_sysenter_record): Call
	i386_all_but_ip_registers_record if syscall is sys_sigreturn
	or sys_rt_sigreturn.
	(I386_LINUX_xstate, I386_LINUX_frame_size): New macros.
	(i386_linux_record_signal): New function.
	(i386_linux_init_abi): Call set_gdbarch_process_record_signal.
2009-09-21 05:55:53 +00:00
Hui Zhu 8b739a963c 2009-09-21 Hui Zhu <teawater@gmail.com>
Michael Snyder  <msnyder@vmware.com>

	* record.c (record_end_entry): New struct.
	(record_type): Add end.
	(record_arch_list_add_end): Set rec->u.end.sigval to
	TARGET_SIGNAL_0.
	(record_message_args): New struct.
	(record_message): Call gdbarch_process_record_signal.
	(do_record_message): Add argument "signal".
	(record_resume): Ditto.
	(record_wait): Ditto.  Check record_list->u.end.sigval
	in replay mode.
2009-09-21 05:54:09 +00:00
Hui Zhu 3846b520e4 2009-09-21 Hui Zhu <teawater@gmail.com>
Michael Snyder  <msnyder@vmware.com>

	* gdbarch.sh (process_record_signal): New interface.
2009-09-21 05:52:06 +00:00
gdbadmin 8fae21ad8f *** empty log message *** 2009-09-21 00:00:03 +00:00
gdbadmin 70d077dc9c *** empty log message *** 2009-09-20 00:00:33 +00:00
Joel Brobecker 26f9bcee59 * varobj.c (varobj_update): Initialize children_changed. 2009-09-19 16:02:36 +00:00