Commit Graph

23750 Commits

Author SHA1 Message Date
Emi Suzuki dde0281261 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
watchpoints.
2009-01-08 03:58:06 +00:00
gdbadmin 967bfe93d5 *** empty log message *** 2009-01-08 00:00:33 +00:00
Doug Evans 69bcc6bc50 * top.c (gdb_prompt_string): Delete, unused. 2009-01-07 22:04:47 +00:00
Pedro Alves fa3a767ffc gdb/
2009-01-07  Pedro Alves  <pedro@codesourcery.com>

	Delete ONE_PROCESS_WRITETEXT leftovers.

	* breakpoint.c (insert_bp_location): Delete process_warning
	argument.  Adjust.
	(insert_breakpoint_locations): Adjust.
	(reattach_breakpoints): Adjust.
	* infrun.c (normal_stop): Drop "It might be running in another
	process" notice.

gdb/doc/
2009-01-07  Pedro Alves  <pedro@codesourcery.com>

	* gdb.texinfo (Error in Breakpoints): Delete mention of "The same
	program may be running in another process" errors.
	* gdbint.texinfo (Native Conditionals): Delete
	ONE_PROCESS_WRITETEXT description.
2009-01-07 21:42:50 +00:00
Stan Shebs 7b93f36dcb * config/pa/linux.mh (XDEPFILES): Remove. 2009-01-07 21:21:11 +00:00
Doug Evans 0380c18b13 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error. 2009-01-07 20:38:16 +00:00
Jan Kratochvil 60023297c3 gdb/
* f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
	spacing, a regression from 2008-04-22.

gdb/testsuite/
	* gdb.fortran/derived-type.exp: New variables int4 and real4.  Match
	now the output exactly, using less wildcards.  Expect also the output
	of gfortran-4.3.  Update for the f-valprint.c modification from
	2008-04-22.
	* gdb.fortran/subarray.exp: Expect also the output of gfortran-4.3.
	Remove gdb_test test names where matching the command.
2009-01-07 12:39:13 +00:00
Joel Brobecker ea8992ce76 * utils.c (gdb_print_host_address): Adjust implementation to
reuse host_address_to_string. Move comment explaining the conversion
        from host address to string from here...
        (host_address_to_string): ... to there.
2009-01-07 12:11:07 +00:00
Emi Suzuki 301d2c47d9 * MAINTAINERS: Add myself for write after approval privileges. 2009-01-07 09:28:31 +00:00
Joel Brobecker 9cb011d3af * gdbint.texinfo (Start of New Year Procedure): Add the "coding"
emacs local variable to be placed at the end of the ChangeLog.
        Add server.c and gdbreplay.c to the list of files where the
        copyright year needs to be updated.
2009-01-07 04:42:45 +00:00
Tom Tromey 170ce85276 * value.c (set_internalvar): Use value_free, not xfree. 2009-01-07 00:45:54 +00:00
gdbadmin 4e6d13a078 *** empty log message *** 2009-01-07 00:00:35 +00:00
Jim Blandy bf1d7d9ce0 Check return values of functions declared with warn_unused_result
attribute in GLIBC 2.8.
* cli/cli-cmds.c (pwd_command): Check return value from getcwd.
* inflow.c (check_syscall): New function.
(new_tty): Use check_syscall to check return values from open and dup.
* linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
* main.c (captured_main): Call cwd after setting up gdb_stderr;
check for errors from getcwd.
* mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
* ui-file.c (stdio_file_write): Ignore return value from fwrite.
(stdio_file_fputs): Same.
* utils.c (internal_vproblem): abort if last-ditch error message
write fails.
2009-01-06 18:31:59 +00:00
Jim Blandy fdb7262ae4 * top.c (gdb_init): Don't set the current directory here; that's
already been done in captured_main.
2009-01-06 18:28:04 +00:00
Sandra Loosemore 84603566b7 2009-01-06 Sandra Loosemore <sandra@codesourcery.com>
gdb/
	* ser-tcp.c: Adjust includes.
	(tcp_set_cmdlist, tcp_show_cmdlist): Declare.
	(tcp_auto_retry, tcp_retry_limit): Declare.
	(TIMEOUT): Remove, in favor of tcp_retry_limit.
	(POLL_INTERVAL): Increase to 5, in favor of backoff logic.
	(wait_for_connect): New function.
	(net_open): Use it.  Add auto-retry logic.
	(set_tcp_cmd, show_tcp_cmd): New functions.
	(_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
	and "set/show tcp connect-timeout" commands.
	* NEWS: Document new commands.

	gdb/doc/
	* gdb.texinfo (Remote Configuration): Document new
	"set/show tcp auto-retry" and "set/show tcp connect-timeout"
	commands.
2009-01-06 17:07:08 +00:00
Joel Brobecker ff703abe64 * gdbreplay.c (gdbreplay_version): Update copyright year.
* server.c (gdbserver_version): Likewise.
2009-01-06 04:49:29 +00:00
Doug Evans f21cc1a2b7 * ChangeLog: Fix date of last entry.
* linux-low.c (handle_extended_wait): Improve comment.
2009-01-06 00:20:44 +00:00
gdbadmin f5bbc3f21e *** empty log message *** 2009-01-06 00:00:03 +00:00
Doug Evans 0e21c1ec8e * linux-low.c (linux_attach_lwp): Add some comments/fixmes. 2009-01-05 23:11:48 +00:00
Tom Tromey 5171e6b382 * python/python-internal.h (Py_ssize_t): Define as int. 2009-01-05 20:48:51 +00:00
Jim Blandy a367a1f22e * MAINTAINERS: Fix my e-mail address as steering committee member. 2009-01-05 17:36:06 +00:00
gdbadmin a59a986507 *** empty log message *** 2009-01-05 00:00:02 +00:00
gdbadmin 06e080341a *** empty log message *** 2009-01-04 00:00:03 +00:00
Joel Brobecker 4d78a12089 Move a 2009 Entry from ChangeLog-2008 to ChangeLog. 2009-01-03 06:02:29 +00:00
Joel Brobecker 0fb0cc7590 Updated copyright notices for most files. 2009-01-03 05:58:08 +00:00
Joel Brobecker c9fc347d38 * top.c (print_gdb_version): Update copyright year. 2009-01-03 05:18:00 +00:00
Joel Brobecker a85d99b462 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008. 2009-01-03 05:15:51 +00:00
Joel Brobecker 67de2a4c95 Rotate the ChangeLog as per the Start of New Year Procedure. 2009-01-03 05:10:18 +00:00
gdbadmin 485440b750 *** empty log message *** 2009-01-03 00:00:33 +00:00
gdbadmin edaccd5629 *** empty log message *** 2009-01-02 00:00:34 +00:00
Pedro Alves ccc57cf9e6 2009-01-01 Pedro Alves <pedro@codesourcery.com>
PR breakpoints/9681:
	* exceptions.h (enum errors): New error type, MEMORY_ERROR.
	* corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
	* breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
	retrow all other exceptions.

2009-01-01  Pedro Alves  <pedro@codesourcery.com>

	PR breakpoints/9681:
	* gdb.base/watchpoint.exp: Add regression test.
2009-01-01 22:02:03 +00:00
gdbadmin 023b0f5cef *** empty log message *** 2009-01-01 00:00:33 +00:00
Pedro Alves c7a6ca08d7 2008-12-31 Pedro Alves <pedro@codesourcery.com>
* gdb.threads/attach-into-signal.exp: Don't use
	gdb_suppress_entire_file.
	* gdb.threads/attach-stopped.exp: Ditto.
	* gdb.threads/attachstop-mt.exp: Ditto.
2008-12-31 15:44:21 +00:00
Pedro Alves 3a031f650c 2008-12-31 Pedro Alves <pedro@codesourcery.com>
PR gdb/8812:
	* infrun.c (handle_command): Don't print a header or notify the
	target about signal changes if we didn't change any signal.

2008-12-31  Pedro Alves  <pedro@codesourcery.com>

	PR gdb/8812:
	* gdb.base/signal.exp: Change kfail to fail, and update PR number.
2008-12-31 01:34:10 +00:00
gdbadmin c5d46bc6b9 *** empty log message *** 2008-12-31 00:00:33 +00:00
gdbadmin 0a71b0bb2e *** empty log message *** 2008-12-30 00:00:33 +00:00
Joel Brobecker cfe9eade2e * valops.c (find_method_list): Minor reformatting in comment. 2008-12-29 06:02:06 +00:00
Pedro Alves 09e6485fa9 2008-12-29 Pedro Alves <pedro@codesourcery.com>
PR gdb/7536:
	* valprint.c (input_radix_1): New static global.
	(set_input_radix): Use it instead of "input_radix".
	(set_input_radix_1): Always leave input_radix_1 set to
	input_radix.
	(output_radix_1): New static global.
	(set_output_radix): Use it instead of "output_radix".
	(set_output_radix_1): Always leave output_radix_1 set to
	output_radix.
	(_initialize_valprint): Use "input_radix_1" instead of
	"input_radix" with the "input-radix" command.  Use
	"output_radix_1" instead of "output_radix" with the "output-radix"
	command.

2008-12-29  Pedro Alves  <pedro@codesourcery.com>

	PR gdb/7536:
	* gdb.base/radix.exp: Add tests to ensure invalid input radices
	and unsupported output radices are really rejected.
2008-12-29 02:18:48 +00:00
gdbadmin b828adc616 *** empty log message *** 2008-12-29 00:00:33 +00:00
Pedro Alves a53f55d8dc * gdbint.texinfo (gdbarch_cannot_fetch_register): Don't mention
FETCH_INFERIOR_REGISTERS.
	(Native Conditionals): Remove obsolete CHILD_PREPARE_TO_STORE,
	FETCH_INFERIOR_REGISTERS descriptions.  Remove
	gdbarch_get_longjmp_target descrition, since already described in
	Target Conditionals.  Move gdbarch_fp0_regnum description to ...
	(Target Conditionals): ... here.
2008-12-28 23:35:52 +00:00
Pedro Alves 7a7d33537f * linux-fork.c (linux_fork_detach): New.
* linux-fork.h (linux_fork_detach): Declare.
	* linux-nat.c (linux_child_follow_fork): When following the fork
	child, add the child inferior before possibly detaching from the
	parent.  Don't reinstall ourselves.
	(linux_nat_detach): Call linux_fork_detach if there are other
	forks to debug.
	* linux-thread-db.c (thread_db_detach): Don't call
	target_mourn_inferior.  Instead inline the necessary bits.
	* inf-ptrace.c (inf_ptrace_detach): Don't unpush the target if
	there are other inferiors to debug.
2008-12-28 16:14:57 +00:00
Jan Kratochvil 262452ec45 Fix TYPE_HIGH_BOUND for TYPE_CODE_RANGE using arbitrary TYPE_NFIELDS in
preparation for supporting DW_AT_byte_stride.
	* ada-lang.c (packed_array_type, ada_index_type): Use TYPE_INDEX_TYPE.
	(ada_array_bound_from_type): Move `index_type' declaration to the
	function start.  New variable `retval'.  Return the bounds for
	TYPE_CODE_RANGE using TYPE_LOW_BOUND and TYPE_HIGH_BOUND.  Abort on
	invalid index type codes.
	* ada-typeprint.c (print_range): Set `upper_bound' for TYPE_CODE_RANGE
	now using TYPE_HIGH_BOUND.
	* ada-valprint.c (val_print_packed_array_elements): Use `index_type'.
	* eval.c (evaluate_subexp_standard): Use TYPE_INDEX_TYPE.
	* gdbtypes.c (create_range_type): Use TYPE_LOW_BOUND, TYPE_HIGH_BOUND,
	refer to the number of fields only through TYPE_NFIELDS.
	(create_array_type): Use TYPE_INDEX_TYPE.
	(check_typedef): Use TYPE_INDEX_TYPE, TYPE_LOW_BOUND, TYPE_HIGH_BOUND.
	* gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED)
	(TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Use TYPE_INDEX_TYPE.
	(TYPE_ARRAY_UPPER_BOUND_VALUE, TYPE_ARRAY_LOWER_BOUND_VALUE): Use
	TYPE_INDEX_TYPE, TYPE_LOW_BOUND, TYPE_HIGH_BOUND,
	* hppa-tdep.c (hppa_alignof <TYPE_CODE_ARRAY>): Use TYPE_INDEX_TYPE.
	* mdebugread.c (parse_type): Use TYPE_LOW_BOUND, TYPE_HIGH_BOUND,
	* valarith.c (value_bit_index): Use TYPE_INDEX_TYPE.
2008-12-28 14:14:19 +00:00
gdbadmin 7257bf6d1b *** empty log message *** 2008-12-28 00:00:04 +00:00
gdbadmin 888d3ede49 *** empty log message *** 2008-12-27 00:00:03 +00:00
Sandra Loosemore ca2d49e822 2008-12-26 Sandra Loosemore <sandra@codesourcery.com>
gdb/
	* breakpoint.c (update_watchpoint): Refactor to avoid compiler
	warning.
2008-12-26 19:11:53 +00:00
gdbadmin 393be9d096 *** empty log message *** 2008-12-26 00:00:33 +00:00
gdbadmin 1c393c651f *** empty log message *** 2008-12-25 00:00:03 +00:00
gdbadmin aca9f9a829 *** empty log message *** 2008-12-24 00:00:03 +00:00
Jan Kratochvil 0cd530490f * gdb.cp/punctuator.exp: Backslash the '$' signs. 2008-12-23 17:19:00 +00:00
gdbadmin 72c1f96001 *** empty log message *** 2008-12-23 00:00:33 +00:00