old-cross-binutils/gdb/testsuite
Pedro Alves 2277426b30 gdb/
2009-07-02  Pedro Alves  <pedro@codesourcery.com>

	* linux-nat.c (linux_child_follow_fork): If we're staying attached
	to the child process, enable event reporting on it.  Don't handle
	checkpoints here.  Instead, add the child fork to the lwp thread
	and inferior lists without clobbering the previous inferior.  Let
	the thread_db layer learn about a new child process, even if
	following the parent.
	(linux_nat_switch_fork): Delete lwps of the current inferior only,
	instead of clearing the whole list.  Use thread_change_ptid to
	give the core the illusion the new checkpoint is still the same
	inferior.  Clear the register cache.
	(linux_handle_extended_wait): Handle checkpoints here.
	(linux_multi_process): Turn on.
	* linux-fork.c (struct fork_info) <pc>: Remove field.
	(init_fork_list): Do not delete the checkpoint from the inferior
	list (it is not there).
	(fork_load_infrun_state): Don't switch inferior_ptid here.  Pass
	the new checkpoint's ptid to linux_nat_switch_fork.
	(fork_save_infrun_state): Make static.  Don't stop the pc field of
	fork_info, it's gone.
	(linux_fork_mourn_inferior): Don't delete the checkpoint from the
	inferior list, it's not there.
	(linux_fork_detach): Ditto.
	(delete_fork_command): Replace mention of fork/checkpoint by
	checkpoint only.
	(detach_fork_command): Likewise.  Don't delete the checkpoint from
	the inferior list.
	(info_forks_command): Adjust.
	(restore_detach_fork): Delete.
	(checkpointing_pid): New.
	(linux_fork_checkpointing_p): New.
	(save_detach_fork): Delete.
	(checkpoint_command): Delete temp_detach_fork.  Don't remove
	breakpoints, that's a nop.  Store the pid of the process we're
	checkpointing, and use make_cleanup_restore_integer to restore it.
	Don't reinsert breakpoints here.
	(process_command, fork_command): Delete.
	(restart_command): Update comments to only mention checkpoints,
	not forks.
	(_initialize_linux_fork): Delete "fork", "process", "info forks"
	commands.
	* linux-fork.h (fork_save_infrun_state, fork_list): Delete
	declarations.
	(linux_fork_checkpointing_p): Declare.
	* cli/cli-cmds.c (killlist): New.
	* cli/cli-cmds.h (killlist): Declare.
	* gdbcmd.h (killlist): Declare.
	* inferior.c: Include "gdbthread.h".
	(detach_inferior_command, kill_inferior_command)
	(inferior_command): New.
	(info_inferiors_command): Allow specifying a specific inferior id.
	(_initialize_inferiors): Register "inferior", "kill inferior" and
	"detach inferior" commands.
	* infcmd.c (_initialize_infcmd): Make "kill" a prefix command.
	* gdbthread.h (any_thread_of_process): Declare.
	* thread.c (any_thread_of_process): New.

	* NEWS: Mention multi-inferior debugging.  Mention 'info
	inferiors', 'inferior', 'detach inferior' and 'kill inferior' as
	new commands.
	(Removed commands): New section, mentioning that 'info forks',
	'fork', 'process', 'delete fork' and 'detach fork' are now gone.

gdb/testsuite/
2009-07-02  Pedro Alves  <pedro@codesourcery.com>

	* gdb.base/multi-forks.exp: Only run detach-on-fork tests on
	linux.  Adjust to use "inferior", "info inferiors", "detach
	inferior" and "kill inferior" instead of "restart", "info fork",
	"detach fork" and "delete fork".
	* gdb.base/ending-run.exp: Spell out "info".
	* gdb.base/help.exp: Adjust to use test_prefix_command_help for
	the "kill" command.

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

	* gdb.texinfo (Debugging multiple inferiors): Document the
	"inferior", "detach inferior" and "kill inferior" commands.
	(Debugging Programs with Multiple Processes): Adjust to mention
	generic "inferior" commands.  Delete mention of "detach fork" and
	"delete fork".  Cross reference to "Debugging multiple inferiors"
	section.
2009-07-02 21:57:28 +00:00
..
config
gdb.ada * gdb.ada/variant_record_packed_array: New testcase. 2009-06-23 16:46:11 +00:00
gdb.arch * gdb.arch/i386-sse.exp: Test xmm[8-15] if amd64. 2009-06-03 16:46:06 +00:00
gdb.asm gdb/ 2009-05-18 13:25:35 +00:00
gdb.base gdb/ 2009-07-02 21:57:28 +00:00
gdb.cp 2009-06-29 Sami Wagiaalla <swagiaal@redhat.com> 2009-06-29 15:18:07 +00:00
gdb.disasm
gdb.dwarf2 ChangeLog: 2009-06-30 16:22:59 +00:00
gdb.fortran gdb/ 2009-02-12 09:15:07 +00:00
gdb.gdb * observer.c (observer_test_first_notification_function) 2009-02-17 19:52:27 +00:00
gdb.hp
gdb.java
gdb.mi * mi/mi-cmd-stack.c (parse_print_values): New. 2009-06-30 09:37:24 +00:00
gdb.modula2
gdb.objc
gdb.opt * dwarf2read.c (inherit_abstract_dies): Work around GCC PR 40573. 2009-06-30 15:50:27 +00:00
gdb.pascal * gdb.pascal/floats.exp: Accept approximate results everywhere. 2009-02-18 14:46:14 +00:00
gdb.python gdb 2009-05-28 01:09:20 +00:00
gdb.reverse 2009-06-27 Michael Snyder <msnyder@vmware.com> 2009-06-27 18:49:20 +00:00
gdb.server * gdb.mi/mi-async.exp, gdb.mi/mi-basics.exp, 2009-06-09 17:12:43 +00:00
gdb.stabs
gdb.threads * defs.h (strlen_paddr, paddr, paddr_nz): Remove. 2009-07-02 17:21:10 +00:00
gdb.trace * gdb.mi/mi-async.exp, gdb.mi/mi-basics.exp, 2009-06-09 17:12:43 +00:00
gdb.xml
lib gdb/testsuite/ 2009-06-30 20:23:05 +00:00
.gdbinit
aclocal.m4 gdb 2009-06-29 16:41:45 +00:00
ChangeLog gdb/ 2009-07-02 21:57:28 +00:00
configure gdb 2009-06-29 16:41:45 +00:00
configure.ac gdb 2009-06-29 16:41:45 +00:00
dg-extract-results.sh gdb 2009-06-29 16:41:45 +00:00
Makefile.in gdb/ 2009-06-30 21:23:38 +00:00
TODO