This is the mail archive of the gdb-prs@sourceware.org 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]
Other format: [Raw text]

Re: testsuite/2033: sigbpt.exp fails on Solaris10 and Solaris9 (possibly others)


The following reply was made to PR testsuite/2033; it has been noted by GNATS.

From: "Steve Williams" <steve.williams@utstar.com>
To: <gdb-gnats@sources.redhat.com>
Cc:  
Subject: Re: testsuite/2033: sigbpt.exp fails on Solaris10 and Solaris9 (possibly others)
Date: Tue, 3 Jan 2006 16:38:40 -0800

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_001E_01C61084.34C48660
 Content-Type: text/plain;
 	charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 
 
 
 Patch to allow sparc-sol2-tdep.c to get the pr_oldcontext from the lwp
 status structure that is held in procfs.c.
 
 This is a quick hack, it would be tidier to add an ioctl style query
 interface to the target. The hack should be OK though, as only the sparc
 solaris target would use it.
 
 This patch is required to allow the new signal trampoline detection patch to
 work.
 
 ------=_NextPart_000_001E_01C61084.34C48660
 Content-Type: application/octet-stream;
 	name="gdb64-procfs-status-api.patch"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment;
 	filename="gdb64-procfs-status-api.patch"
 
 --- gdb-6.4/gdb/procfs.c	2006-01-03 14:39:12.098567000 -0800=0A=
 +++ gdb-6.4pppp/gdb/procfs.c	2006-01-03 13:45:41.666273000 -0800=0A=
 @@ -5363,6 +5363,27 @@=0A=
    return 0;=0A=
  }=0A=
  =0A=
 +lwpstatus_t *=0A=
 +procfs_get_inf_lwp_status (void)=0A=
 +{=0A=
 +  procinfo *pi;=0A=
 +  int pid =3D PIDGET (inferior_ptid);=0A=
 +  int tid =3D TIDGET (inferior_ptid);=0A=
 +=0A=
 +  /* First look up procinfo for the main process.  */=0A=
 +  pi =3D find_procinfo (pid, 0);=0A=
 +  if(pi =3D=3D NULL)=0A=
 +    return NULL;=0A=
 +=0A=
 +  /* If the event thread is not the same as GDB's requested thread=0A=
 +     (ie. inferior_ptid), then look up procinfo for the requested=0A=
 +     thread.  */=0A=
 +  if (tid !=3D 0 && tid !=3D proc_get_current_thread (pi))=0A=
 +    pi =3D find_procinfo_or_die (pid, tid);=0A=
 +=0A=
 +  return &pi->prstatus.pr_lwp;=0A=
 +}=0A=
 +=0A=
  #ifdef TM_I386SOL2_H=0A=
  /*=0A=
   * Function: procfs_find_LDT_entry=0A=
 
 ------=_NextPart_000_001E_01C61084.34C48660--
 


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