Re: sigaction siginfo_t & SIGSEGV

2003-01-22 Thread Igor Pechtchanski
On Wed, 22 Jan 2003, Christopher Faylor wrote: > On Tue, Jan 21, 2003 at 11:27:09PM -0500, Igor Pechtchanski wrote: > >On Tue, 21 Jan 2003, Rolf Campbell wrote: > > > >> I'm trying to write an application that can run some code when a certain > >> memory address is read or written. > >> My first t

Re: sigaction siginfo_t & SIGSEGV

2003-01-22 Thread Christopher Faylor
On Tue, Jan 21, 2003 at 11:27:09PM -0500, Igor Pechtchanski wrote: >On Tue, 21 Jan 2003, Rolf Campbell wrote: > >> I'm trying to write an application that can run some code when a certain >> memory address is read or written. >> My first theory was to use mprotect to remove read/write permissions >

Re: sigaction siginfo_t & SIGSEGV

2003-01-21 Thread Igor Pechtchanski
On Tue, 21 Jan 2003, Rolf Campbell wrote: > I'm trying to write an application that can run some code when a certain > memory address is read or written. > My first theory was to use mprotect to remove read/write permissions > from a section and then catch SIGSEGV, but siginfo_t doesn't seem to be

sigaction siginfo_t & SIGSEGV

2003-01-21 Thread Rolf Campbell
I'm trying to write an application that can run some code when a certain memory address is read or written. My first theory was to use mprotect to remove read/write permissions from a section and then catch SIGSEGV, but siginfo_t doesn't seem to be defined. Is hooking a signal using the 'sa_sigac