* [Linux-ia64] sigcontext structure
@ 2002-10-06 17:43 shiva chetan
2002-10-07 10:09 ` Aneesh Kumar K.V
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: shiva chetan @ 2002-10-06 17:43 UTC (permalink / raw)
To: linux-ia64
[-- Attachment #1: Type: text/plain, Size: 195 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 642 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Linux-ia64] sigcontext structure
2002-10-06 17:43 [Linux-ia64] sigcontext structure shiva chetan
@ 2002-10-07 10:09 ` Aneesh Kumar K.V
2002-11-13 18:42 ` shiva chetan
2002-11-14 0:55 ` David Mosberger
2 siblings, 0 replies; 4+ messages in thread
From: Aneesh Kumar K.V @ 2002-10-07 10:09 UTC (permalink / raw)
To: linux-ia64
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Linux-ia64] sigcontext structure
2002-10-06 17:43 [Linux-ia64] sigcontext structure shiva chetan
2002-10-07 10:09 ` Aneesh Kumar K.V
@ 2002-11-13 18:42 ` shiva chetan
2002-11-14 0:55 ` David Mosberger
2 siblings, 0 replies; 4+ messages in thread
From: shiva chetan @ 2002-11-13 18:42 UTC (permalink / raw)
To: linux-ia64
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)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Linux-ia64] sigcontext structure
2002-10-06 17:43 [Linux-ia64] sigcontext structure shiva chetan
2002-10-07 10:09 ` Aneesh Kumar K.V
2002-11-13 18:42 ` shiva chetan
@ 2002-11-14 0:55 ` David Mosberger
2 siblings, 0 replies; 4+ messages in thread
From: David Mosberger @ 2002-11-14 0:55 UTC (permalink / raw)
To: linux-ia64
>>>>> On Wed, 13 Nov 2002 12:42:20 -0600, "shiva chetan" <chetan@uiuc.edu> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-11-14 0:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-06 17:43 [Linux-ia64] sigcontext structure shiva chetan
2002-10-07 10:09 ` Aneesh Kumar K.V
2002-11-13 18:42 ` shiva chetan
2002-11-14 0:55 ` David Mosberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox