This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: accumulated Solaris/x86 patch


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]