Re: SIGSEGV information on SPARC64

2007-08-06 Thread David Miller
From: "jiaqi zhang" <[EMAIL PROTECTED]> Date: Tue, 7 Aug 2007 13:34:22 +1200 > Do you mean retrieving the instruction from tpc in sigcontext? Yep. - To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://v

Re: SIGSEGV information on SPARC64

2007-08-06 Thread jiaqi zhang
Do you mean retrieving the instruction from tpc in sigcontext? Thanks a lot. I'll try it. On 8/7/07, David Miller <[EMAIL PROTECTED]> wrote: > From: "jiaqi zhang" <[EMAIL PROTECTED]> > Date: Tue, 7 Aug 2007 10:41:18 +1200 > > > While I could find the faultive address in siginfo_t, it seems there >

Re: SIGSEGV information on SPARC64

2007-08-06 Thread David Miller
From: "jiaqi zhang" <[EMAIL PROTECTED]> Date: Tue, 7 Aug 2007 10:41:18 +1200 > While I could find the faultive address in siginfo_t, it seems there > is no way to find the access type(read or write) in it. Disassemble the instruction and see if it is a load or a store. Even if the information is

SIGSEGV information on SPARC64

2007-08-06 Thread jiaqi zhang
Hello everyone, I'm working on a project that needs to deal with SIGSEGV on SPARC64. While I could find the faultive address in siginfo_t, it seems there is no way to find the access type(read or write) in it. I tracked the kernel source and found that ther kernel retrieves this information (fault