DSM- SIGSEGV signal read or write?
From: Daniel Kawer (dkawer_at_ic-itcr.ac.cr)
Date: 05/23/04
- Previous message: Kasper Dupont: "Re: Help - problem related to herder files included"
- Next in thread: Kasper Dupont: "Re: DSM- SIGSEGV signal read or write?"
- Reply: Kasper Dupont: "Re: DSM- SIGSEGV signal read or write?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 22 May 2004 15:08:40 -0700
Im working on the development of a DSM. I have a problem when catching
the SIGSEGV signal. I need to know if the signal was generated the
program trying to read or to write to the page in question.
I read somewhere that it could be done like this:
void PageHandler(int signum, struct sigcontext_struct scs )
{
address = (int) scs.cr2;
error = (scs.err & 2); // 1==write, 0==read
…
}
but the variable never changes its value, no matter if its a read or
write.
Does anyone know a different/better way to approach this?
Help will be aprecciated,
Daniel Kawer
Costa Rican Institute of Technology
- Previous message: Kasper Dupont: "Re: Help - problem related to herder files included"
- Next in thread: Kasper Dupont: "Re: DSM- SIGSEGV signal read or write?"
- Reply: Kasper Dupont: "Re: DSM- SIGSEGV signal read or write?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|