summaryrefslogtreecommitdiff
path: root/gdb/proc-service.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
commit5804effc2da38cf13cabc7a84a2c314dd4bd6d1e (patch)
tree2cc0af23c1ce60fe47549b576a92385dc9437394 /gdb/proc-service.c
parent97692badc52dec581548db39d8a94936032dbc2c (diff)
downloadgdb-5804effc2da38cf13cabc7a84a2c314dd4bd6d1e.tar.gz
Consolidate save_inferior_ptid/restore_inferior_ptid implementation to
one source file.
Diffstat (limited to 'gdb/proc-service.c')
-rw-r--r--gdb/proc-service.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/gdb/proc-service.c b/gdb/proc-service.c
index 74e81ae4b18..37ab1bd7dad 100644
--- a/gdb/proc-service.c
+++ b/gdb/proc-service.c
@@ -60,24 +60,6 @@ typedef size_t gdb_ps_size_t;
/* Helper functions. */
-static void
-restore_inferior_ptid (void *arg)
-{
- ptid_t *saved_pid_ptr = arg;
- inferior_ptid = *saved_pid_ptr;
- xfree (arg);
-}
-
-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);
-}
-
/* Transfer LEN bytes of memory between BUF and address ADDR in the
process specified by PH. If WRITE, transfer them to the process,
else transfer them from the process. Returns PS_OK for success,