2006-01-04 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Wed, 4 Jan 2006 19:34:58 +0000 (19:34 +0000)
committerMichael Snyder <msnyder@vmware.com>
Wed, 4 Jan 2006 19:34:58 +0000 (19:34 +0000)
commitac264b3b9cf16064cea9011faf07ec61babb0ef8
tree02269be136dcba8affaec7ce4be33ba4c35ff827
parent5c95884b4cb77d6a902ade2f566eb71f9a322dd0
2006-01-04  Michael Snyder  <msnyder@redhat.com>

Checkpoint/Restart for Linux.
* linux-nat.c: Add support for debugging multiple forks.
Add #include for linux-fork.h (interface spec).
(super_mourn_inferior): New function pointer.
(child_mourn_inferior): New function / target method.
(linux_target): Claim to_mourn_inferior method pointer.
(child_follow_fork): Call interface to linux-fork, conditionally
add new fork processes to list of debugged processes.
(kill_inferior): Use interface to linux-fork to kill
multiple processes.

* linux-fork.h: New file.
* linux-fork.c: New file.  Support for debugging multiple forks
of the same program.  Support for checkpoint and restart commands.

* infrun.c (nullify_last_target_wait_ptid): New function.

* Makefile.in: Add linux-fork.
* config/*/linux.mh: Add linux-fork.
* NEWS: Mention new functionality.
20 files changed:
gdb/ChangeLog
gdb/Makefile.in
gdb/NEWS
gdb/config/alpha/alpha-linux.mh
gdb/config/arm/linux.mh
gdb/config/i386/linux.mh
gdb/config/i386/linux64.mh
gdb/config/ia64/linux.mh
gdb/config/m32r/linux.mh
gdb/config/m68k/linux.mh
gdb/config/mips/linux.mh
gdb/config/pa/linux.mh
gdb/config/powerpc/linux.mh
gdb/config/powerpc/ppc64-linux.mh
gdb/config/sparc/linux.mh
gdb/config/sparc/linux64.mh
gdb/infrun.c
gdb/linux-fork.c [new file with mode: 0644]
gdb/linux-fork.h [new file with mode: 0644]
gdb/linux-nat.c