This is the mail archive of the
gdb@sourceware.org
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...
Hello,
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:
http://sourceware.org/bugzilla/show_bug.cgi?id=9425
As well as a reference to that discussion with Roland:
http://bugzilla.kernel.org/show_bug.cgi?id=9039
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...
Thanks,
--
Joel