This is the mail archive of the
mailing list for the GDB project.
SIGINT & signal handler vs Linux kernel...
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb at sourceware dot org
- Date: Thu, 13 Aug 2009 12:47:00 -0700
- Subject: SIGINT & signal handler vs Linux kernel...
We just noticed something really odd: When debugging a threaded program
that has a SIGINT handler, pressing ctrl-c no longer interrupts that
program (we attached the debugger to the process, not sure if this
does make a difference or not). Instead, the program simply executes
the signal handler.
I found the following entry in our bug database:
As well as a reference to that discussion with Roland:
I just wanted to see if anyone knew what the current status was?
It sounds from the discussion above that an enhancement in the kernel
is necessary first, and then a corresponding change in GDB can be made
to get the SIGINT notifications. Would that be correct? (the kernel
enhancement hasn't been done, right?) If the kernel enhancement has
been done, I could have a look at the GDB part, but I have never looked
at Linux and wouldn't be able to help with that part...