Mail Archives: cygwin/2003/01/22/12:01:57
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 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_sigaction' member of 'struct
> >> sigaction' supported in CygWin?
> >>
> >> I noticed that struct siginfo_t is declared in sys/signal.h, but inside
> >> a couple of #ifdef:
> >> #if defined(__rtems__)
> >> #if defined(_POSIX_REALTIME_SIGNALS)
> >>
> >> And it doesn't have the member that I need anyways (si_addr).
> >>
> >> Does anyone know of any other ways of trapping reads/writes to/from
> >> memory regions?
> >>
> >> -Rolf Campbell
> >
> >No, sigaction is not supported on Cygwin. It's on the TODO list.
>
> That's overstating the situation. sigaction() is certainly supported in
> cygwin. The sa_sigaction field in the sigaction struct is not.
>
> cgf
Yes, my apologies. That's what I get for being too lazy to type 3 extra
characters...
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
-- /usr/games/fortune
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -