From mboxrd@z Thu Jan 1 00:00:00 1970 From: "shiva chetan" Date: Sun, 06 Oct 2002 17:43:21 +0000 Subject: [Linux-ia64] sigcontext structure MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_023D_01C26D35.F43EDD10" Message-Id: List-Id: To: linux-ia64@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_023D_01C26D35.F43EDD10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable where can i find info on sigcontext structure on linux/ia-64 ? = specifically which registers hold the faulting address/type on a = segmention fault and the trap no on a SIGTRAP ? thanks chetan ------=_NextPart_000_023D_01C26D35.F43EDD10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
where can i find info on sigcontext = structure on=20 linux/ia-64 ? specifically which registers hold the faulting = address/type on a=20 segmention fault and the trap no on a SIGTRAP ?
 
thanks
chetan
------=_NextPart_000_023D_01C26D35.F43EDD10-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Aneesh Kumar K.V" Date: Mon, 07 Oct 2002 10:09:36 +0000 Subject: Re: [Linux-ia64] sigcontext structure Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org Hi, Using sigaction with siginfo will help you in catching those address. siginfo.si_addr carry the faulting address and the below statement shows how it is calcluated siginfo.si_addr = (void *) (regs->cr_iip + ia64_psr(regs)->ri); where regs is pt_regs. -aneesh On Sun, 2002-10-06 at 23:13, shiva chetan wrote: > where can i find info on sigcontext structure on linux/ia-64 ? > specifically which registers hold the faulting address/type on a > segmention fault and the trap no on a SIGTRAP ? > > thanks > chetan From mboxrd@z Thu Jan 1 00:00:00 1970 From: "shiva chetan" Date: Wed, 13 Nov 2002 18:42:20 +0000 Subject: [Linux-ia64] sigcontext structure Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org Hi, The sigcontext structure of linux/i386 has the following fields trapno (stores trap number) err (stores faulting address) cr2 (contains type of fault) what are the equivalent fields in the sigcontext structure of linux/ia64 ? its not very apparent from the definition of the structure. thanks chetan Dept of Computer Science Univ of Illinois at Urbana-Champaign Ph: (217) 333-9051, (217) 244-5110 (O) (217) 384-2173 (R) From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Mosberger Date: Thu, 14 Nov 2002 00:55:13 +0000 Subject: Re: [Linux-ia64] sigcontext structure Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org >>>>> On Wed, 13 Nov 2002 12:42:20 -0600, "shiva chetan" said: Chetan> Hi, The sigcontext structure of linux/i386 has the following Chetan> fields Chetan> trapno (stores trap number) err (stores faulting address) Chetan> cr2 (contains type of fault) Chetan> what are the equivalent fields in the sigcontext structure Chetan> of linux/ia64 ? its not very apparent from the definition Chetan> of the structure. There is no 1-to-1 correspondence, but such info is stored in siginfo on ia64. See siginfo.h. --david