Commit Graph

23727 Commits

Author SHA1 Message Date
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
Tom Tromey aad95b57c5 * stack.c (print_block_frame_locals): Print spaces, not tabs.
Update for call to print_variable_and_value.
	(print_frame_arg_vars): Update.
	* value.h (print_variable_and_value): Rename from
	print_variable_value.  Add 'name' and 'indent' parameters.
	* printcmd.c (print_variable_and_value): Rename from
	print_variable_value.  Add 'name' and 'indent' parameters.  Use
	common_val_print.
	* f-valprint.c (info_common_command): Update.
2008-12-22 23:11:56 +00:00
Tom Tromey 1446eb676f * python/python-value.c (valpy_length): Remove #if. 2008-12-22 19:45:58 +00:00
Tom Tromey f2f35b75ff 2008-12-22 Paul Pluzhnikov <ppluzhnikov@google.com>
* python/python-internal.h (PyEval_ReleaseLock): New define.
2008-12-22 16:25:17 +00:00
Tom Tromey ba163c7e44 gdb
* c-exp.y (ident_tokens): New global.
	(struct token) <cxx_only>: New field.
	(tokentab3): Update.
	(tokentab2): Update.
	(yylex): Use ident_tokens.
gdb/testsuite
	* gdb.cp/punctuator.exp: New file.
2008-12-22 14:21:01 +00:00
Tom Tromey 9a61c7a6d7 2008-12-22 Adam Denton <adenton@yahoo.com>
PR gdb/8307:
	* environ.c (free_environ): Free e->vector.
2008-12-22 14:06:27 +00:00
Jan Kratochvil 6f4de6c97d gdb/
Fix memory double-free.
	* completer.c (line_completion_function): Clear LIST after called xfree.
gdb/testsuite/
	* gdb.base/completion.exp (Completing non-existing component): New test.
2008-12-22 13:19:30 +00:00
Joel Brobecker 567e1b4ec8 * breakpoint.c (update_watchpoint): Adjust and extend the description
of this function.  Fix one error message accordingly.
2008-12-22 04:37:37 +00:00
gdbadmin 818d48acf0 *** empty log message *** 2008-12-22 00:00:03 +00:00
Jan Kratochvil 0f34d0b4f9 Fix for PR gdb/8648.
* gdb.arch/ppc-fp.exp, gdb.arch/vsx-regs.exp, gdb.base/watchpoint-hw.c,
	gdb.gdbtk/browser.test, gdb.gdbtk/console.test, gdb.gdbtk/srcwin.test,
	gdb.gdbtk/srcwin2.test, gdb.gdbtk/srcwin3.test, gdb.gdbtk/windows.test,
	gdb.threads/tls2.c: Remove reference to bug-gdb@prep.ai.mit.edu .
2008-12-21 17:38:55 +00:00
Jan Kratochvil db2ad4c3f7 gdb/
Fix hw watchpoints created before the inferior was started.
	* breakpoint.c (update_watchpoint): Convert the bp_watchpoint and
	bp_hardware_watchpoint types according to the current runtime state.
gdb/testsuite/
	* gdb.base/watchpoint-hw.exp, gdb.base/watchpoint-hw.c: New.
2008-12-21 15:01:32 +00:00
gdbadmin 2155ff5293 *** empty log message *** 2008-12-21 00:00:35 +00:00
gdbadmin 011dfc6399 *** empty log message *** 2008-12-20 00:00:33 +00:00
gdbadmin 11a5df225c *** empty log message *** 2008-12-19 00:00:33 +00:00
Pedro Alves 0d14fc6327 * linux-nat.c (linux_child_follow_fork): If following the child,
and not detaching the parent, also add the child fork to the fork
	list.
	* linux-fork.c (linux_fork_context): Remove dead error call.
	Assert that the incoming newfp argument is not null.  Do not add a
	new fork for inferior_ptid.  Assert that there is one already.
2008-12-18 21:35:23 +00:00
gdbadmin 3a4514b23d *** empty log message *** 2008-12-18 00:00:32 +00:00
gdbadmin c7c8fccb94 *** empty log message *** 2008-12-17 00:00:03 +00:00
Denis Pilat bb5ef15eff 2008-12-16 Christophe Lyon <christophe.lyon@st.com>
* gdb.base/expand-psymtabs.c: Insert code in foo so that the
       compiler actually generate code at the expected line number.
2008-12-16 13:15:50 +00:00
Tristan Gingold d26b535418 2008-12-16 Tristan Gingold <gingold@adacore.com>
* inflow.c: Remove old_sigio, handle_sigio, old_fcntl_flags,
	set_sigio_trap, clear_sigio_trap definitions.
	* inferior.h: Remove set_sigio_trap and clear_sigio_trap declarations.
	* inf-ptrace.c (inf_ptrace_wait): Remove call to set_sigio_trap
	and clear_sigio_trap.
	* inf-ttrace.c (inf_ttrace_wait): Ditto.
	* linux-nat.c (linux_nat_wait): Ditto.
	* spu-linux-nat.c (spu_child_wait): Ditto.
	* rs6000-nat.c (rs6000_wait): Ditto.
	* target.c: Remove target_activity_function and target_activity_fd.
	* target.h: Remove target_activity_function and target_activity_fd
	declarations.
2008-12-16 11:15:58 +00:00
Joel Brobecker 077e0a5242 * gdb.texinfo (Omissions from Ada): Add missing GDB prompt in
examples.
        (Additions to Ada): Likewise. Add the missing opening and closing
        parenthesis of the GDB prompt in one of the examples.
2008-12-16 06:14:00 +00:00
Paul Pluzhnikov 7b1f21e5c4 2008-12-15 Paul Pluzhnikov <ppluzhnikov@google.com>
* dbxread.c (read_ofile_symtab): Sign-extend 32-bit N_LSYM and
	N_PSYM STABS values for 64-bit GDB.
2008-12-16 05:06:05 +00:00
gdbadmin 2e9de9fa1e *** empty log message *** 2008-12-16 00:00:33 +00:00
Jie Zhang 90142adc1d * gdb.base/consecutive.exp: Don't use global in gdb_expect. 2008-12-15 13:04:56 +00:00
Tristan Gingold 9f3fe11c95 2008-12-15 Tristan Gingold <gingold@adacore.com>
* dwarf2expr.c (execute_stack_op): Handle DW_OP_swap.
2008-12-15 11:32:08 +00:00