This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog infrun.c linux-nat.c
- From: msnyder at sourceware dot org
- To: gdb-cvs at sources dot redhat dot com
- Date: 22 Nov 2005 00:42:28 -0000
- Subject: src/gdb ChangeLog infrun.c linux-nat.c
CVSROOT: /cvs/src
Module name: src
Branch: msnyder-fork-checkpoint-branch
Changes by: msnyder@sourceware.org 2005-11-22 00:42:28
Modified files:
gdb : ChangeLog infrun.c linux-nat.c
Log message:
2005-11-21 Michael Snyder <msnyder@redhat.com>
* linux-nat.c: Add crude checkpoint/restart using forks.
(child_follow_fork): Put a conditional around PTRACE_DETACH.
FIXME needs to be done in the parent branch too.
(__initialize_linux_nat): Call checkpoint_init.
(struct fork_info): Analog of thread_info.
(fork_load_infrun_state, fork_save_infrun_state):
Save and restore necessary info for fork context switch.
(add_fork, free_fork, delete_fork, find_fork_id, init_fork_list,
find_fork_ptid, iterate_over_forks, valid_fork_id, pid_to_fork_id,
fork_id_to_ptid, in_fork_list): Analogs to thread_list methods.
(info_forks_command): Implement "info forks" (info checkpoints).
(delete_checkpoint): Implement "delete-checkpoint" command.
(checkpoint_command): Implement "checkpoint" command.
(restart_command): Implement "restart" command.
(checkpoint_init): Initialization for checkpoint sub-module.
* infrun.c (set_last_target_status): Supporting function
for checkpoint/restart based on forks (linux).
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.1&r2=1.7446.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/infrun.c.diff?cvsroot=src&only_with_tag=msnyder-fork-checkpoint-branch&r1=1.207&r2=1.207.4.1
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&r2=1.34.4.1