aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-thread.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2001-05-06 22:22:03 +0000
committerKevin Buettner <kevinb@redhat.com>2001-05-06 22:22:03 +0000
commitce696e0556e9ddc48e7d049356a3c3fe6b7399d8 (patch)
tree64ca31984622469dfdf2ff37a3a142eae50f08e8 /gdb/linux-thread.c
parenta7c92daeedfd9d5326113d1776c6db7ed18efcc6 (diff)
downloadgdb-ce696e0556e9ddc48e7d049356a3c3fe6b7399d8.zip
gdb-ce696e0556e9ddc48e7d049356a3c3fe6b7399d8.tar.gz
gdb-ce696e0556e9ddc48e7d049356a3c3fe6b7399d8.tar.bz2
Consolidate save_inferior_ptid/restore_inferior_ptid implementation to
one source file.
Diffstat (limited to 'gdb/linux-thread.c')
-rw-r--r--gdb/linux-thread.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/gdb/linux-thread.c b/gdb/linux-thread.c
index 922a563..62c07c4 100644
--- a/gdb/linux-thread.c
+++ b/gdb/linux-thread.c
@@ -374,26 +374,6 @@ linuxthreads_find_trap (int pid, int stop)
return 1;
}
-/* Cleanup stub for save_inferior_ptid. */
-static void
-restore_inferior_ptid (void *arg)
-{
- ptid_t *saved_ptid_ptr = arg;
- inferior_ptid = *saved_ptid_ptr;
- xfree (arg);
-}
-
-/* Register a cleanup to restore the value of inferior_ptid. */
-static struct cleanup *
-save_inferior_ptid (void)
-{
- ptid_t *saved_ptid_ptr;
-
- saved_ptid_ptr = xmalloc (sizeof (ptid_t));
- *saved_ptid_ptr = inferior_ptid;
- return make_cleanup (restore_inferior_ptid, saved_ptid_ptr);
-}
-
static void
sigchld_handler (int signo)
{