aboutsummaryrefslogtreecommitdiff
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
commit05e28a7bbf77a063303591ea3ba713c7a990264f (patch)
tree5ad8ea5e26960deb6831070ca2161a4dd08dc7a8 /gdb/procfs.c
parentb241ba8eab18119f11a6c95f7e577045e535ad39 (diff)
downloadfsf-binutils-gdb-05e28a7bbf77a063303591ea3ba713c7a990264f.zip
fsf-binutils-gdb-05e28a7bbf77a063303591ea3ba713c7a990264f.tar.gz
fsf-binutils-gdb-05e28a7bbf77a063303591ea3ba713c7a990264f.tar.bz2
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 b108078..257de12 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;
-}