This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
signals at breakpoints in Linux
- To: gdb@sourceware.cygnus.com
- Subject: signals at breakpoints in Linux
- From: Neal Cardwell <cardwell@cs.washington.edu>
- Date: Sat, 24 Jul 1999 01:57:29 -0700 (PDT)
Hi all,
I'm trying to build a minimal debugger under Linux that maintains a set of
breakpoints and prints out some information each time a breakpoint is hit.
It works fine, except for the case where the child process executes a
breakpoint instruction and wait(2) tells me that a (non-SIGTRAP) signal is
pending. I can't seem to handle this case correctly, no matter what i try.
What is the correct course of action when a breakpoint and signal are
encountered simultaneously? I've tried looking at the sources for GDB, but
they're pretty tough to wade through.
[apologies if this is the wrong forum]
thanks,
neal