From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13881 invoked by alias); 25 Mar 2002 19:26:17 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 13810 invoked from network); 25 Mar 2002 19:26:09 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 25 Mar 2002 19:26:09 -0000 Received: from redhat.com (notinuse.cygnus.com [205.180.231.12]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id LAA23564; Mon, 25 Mar 2002 11:25:58 -0800 (PST) Message-ID: <3C9F7746.A30EB8B2@redhat.com> Date: Mon, 25 Mar 2002 11:26:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Accept-Language: en MIME-Version: 1.0 To: Andrew Cagney CC: rbrown64@csc.com.au, gdb-patches@sources.redhat.com Subject: Re: PATCH: procfs.c for UnixWare (v4) References: <3C9CD158.70403@cygnus.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-03/txt/msg00468.txt.bz2 Andrew Cagney wrote: > > Did this patch get resolved? Yes, I believe so. > > Andrew > > > 2001-01-18 Rodney Brown > > * procfs.c: Prototype elfcore_write_prstatus, elfcore_write_pstatus, > > elfcore_write_prfpreg, elfcore_write_prpsinfo. > > (procfs_do_thread_registers): Call elfcore_write_gdb_prstatus. > > > > --- procfs.c.orig Tue Jan 15 15:01:48 2002 > > +++ procfs.c Fri Jan 18 16:41:38 2002 > > @@ -55,7 +55,7 @@ Inc., 59 Temple Place - Suite 330, Bosto > > * Unixware > > * AIX5 > > * > > - * /proc works by immitating a file system: you open a simulated file > > + * /proc works by imitating a file system: you open a simulated file > > * that represents the process you wish to interact with, and > > * perform operations on that "file" in order to examine or change > > * the state of the other process. > > @@ -135,6 +135,14 @@ static int proc_find_memory_regions (int > > > > static char * procfs_make_note_section (bfd *, int *); > > > > +#ifndef HAVE_PSTATUS_T > > +char *elfcore_write_prstatus (bfd *, char *, int *, long, int, void *); > > +#else > > +char *elfcore_write_pstatus (bfd *, char *, int *, long, int, void *); > > +#endif > > +char *elfcore_write_prfpreg (bfd *, char *, int *, void *, int); > > +char *elfcore_write_prpsinfo (bfd *, char *, int *, char *, char *); > > + > > struct target_ops procfs_ops; /* the target vector */ > > > > static void > > @@ -5733,12 +5741,22 @@ procfs_do_thread_registers (bfd *obfd, p > > merged_pid = TIDGET (ptid) << 16 | PIDGET (ptid); > > > > fill_gregset (&gregs, -1); > > +/* Solaris 2.7 has NEW_PROC_API, but defaults to !HAVE_PSTATUS_T. */ > > +#ifndef HAVE_PSTATUS_T > > note_data = (char *) elfcore_write_prstatus (obfd, > > note_data, > > note_size, > > merged_pid, > > stop_signal, > > &gregs); > > +#else > > + note_data = (char *) elfcore_write_pstatus (obfd, > > + note_data, > > + note_size, > > + merged_pid, > > + stop_signal, > > + &gregs); > > +#endif > > fill_fpregset (&fpregs, -1); > > note_data = (char *) elfcore_write_prfpreg (obfd, > > note_data, > > > > > >