This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: accumulated Solaris/x86 patch
- To: Nick Duffek <nsd at cygnus dot com>
- Subject: Re: accumulated Solaris/x86 patch
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 06 Apr 2000 20:35:13 +1000
- CC: gdb-patches at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <200004050059.e350xXg13592@rtl.cygnus.com>
Nick Duffek wrote:
>
> This patch is an accumulation of Solaris/x86 fixes by Michael Snyder, plus
> a fix by me to allow compilation on Solaris 7.
>
> No regressions are evident on i386-pc-solaris2.7, sparc-sun-solaris2.6, or
> sparc-sun-solaris2.5.1.
>
> Comments welcome,
> Index: procfs.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/procfs.c,v
> retrieving revision 1.4
> diff -u -r1.4 procfs.c
> --- procfs.c 2000/03/28 19:02:47 1.4
> +++ procfs.c 2000/04/04 02:16:59
> @@ -5254,3 +5254,20 @@
> 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;
> +}
Nick, is this function used?
Andrew