This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog linux-nat.c
- From: msnyder at sourceware dot org
- To: gdb-cvs at sources dot redhat dot com
- Date: 24 Nov 2005 02:22:38 -0000
- Subject: src/gdb ChangeLog linux-nat.c
CVSROOT: /cvs/src
Module name: src
Branch: msnyder-fork-checkpoint-branch
Changes by: msnyder@sourceware.org 2005-11-24 02:22:38
Modified files:
gdb : ChangeLog linux-nat.c
Log message:
2005-11-23 Michael Snyder <msnyder@redhat.com>
* linux-nat.c: Adapt fork list to work with follow_fork.
(child_follow_fork): Add non-detached fork to fork list.
Handle follow-child as well as follow-parent.
(fork_load_infrun_state, fork_save_infrun_state):
Don't save any actual infrun state except for last_ptid.
Just save registers, and add the option of NOT restoring them.
Also don't leak regcache objects.
(add_fork): Accept a pid instead of a ptid.
(find_fork_pid): New function.
(pid_to_fork_id): Delete function.
(detach_fork_command): New command.
(checkpoint_command): Remember previous setting of detach_fork.
Don't call add_fork, it's now done by child_follow_fork.
FIXME get rid of call to target_fetch_registers.
(checkpoint_init): Add setshow detach-on-fork.
Add detach-fork.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&only_with_tag=msnyder-fork-checkpoint-branch&r1=1.7446.2.2&r2=1.7446.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/linux-nat.c.diff?cvsroot=src&only_with_tag=msnyder-fork-checkpoint-branch&r1=1.34.4.1&r2=1.34.4.2