RE: [AD] errno = EINTR troubles - any unix experts? |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
> Is there a way to make a program abort() as soon as it sees
> any of those
> "asynchronous signals" the libc docs mention - so gdb would show a
> backtrace of what is going on, and *which* system call is actually
> failing?
Well, you can man 3 signal, and set a handler which aborts for
everyone of them. They're likely to happen a lot though, so you
probably want to enable your signal handler just before the blit
you are talking about, and then only log them in a memory buffer
and restore the old signal handlers after the blit is done.
You can also try to set a memory write breakpoint on errno, but
I haven't tried that ever. GDB might be able to do that, I kind
of remember seeing a reference to that somewhere...
--
Vincent Penquerc'h
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |