accumulated Solaris/x86 patch

Andrew Cagney ac131313@cygnus.com
Thu Apr 6 03:36:00 GMT 2000


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


More information about the Gdb-patches mailing list