summaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-02-29 13:53:59 +0000
committerAndrew Cagney <cagney@redhat.com>2000-02-29 13:53:59 +0000
commit450c49f5d07e44e5bf3ba1b3f3a694491afef3c7 (patch)
tree360010df8f6ebf23f91e5e632ea512b28261bb1e /gdb/procfs.c
parent0e6d848b0d35a7868c6744ab163558b03826e7a8 (diff)
downloadgdb-450c49f5d07e44e5bf3ba1b3f3a694491afef3c7.tar.gz
From Peter Schauer: Fix Solaris/x86 threads by copying linux code.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r--gdb/procfs.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c
index b1080783498..257de1291d1 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -5254,20 +5254,3 @@ procfs_first_available ()
else
return -1;
}
-
-int
-procfs_get_pid_fd (pid)
- int pid;
-{
- procinfo *pi;
-
- if (pid == -1 && inferior_pid != 0)
- pi = find_procinfo (PIDGET (inferior_pid), 0);
- else
- pi = find_procinfo (PIDGET (pid), 0);
-
- if (pi)
- return pi->ctl_fd;
- else
- return -1;
-}