Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* proper usage of "-exec-interrupt"
@ 2011-09-17  7:17 Alexander Petukhov
  2011-09-17 19:06 ` Joel Brobecker
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Petukhov @ 2011-09-17  7:17 UTC (permalink / raw)
  To: gdb

Hi,
I'm writing a GDB plugin for an IDE and I'm using async target in MI mode
to allow user to alter breakpoints while debugging.
As I learned I have to use "-exec-interrupt" command to stop a debugger but
when I'm doing so a process that spawns GDB, i.e. an IDE receives SIGINT 
and exits accordingly.
Unfortunately I wasn't able to intercept a signal in IDE as it's written 
with GTK and signal functions do not work for some reason.
The other way I've found is to send SIGINT directly to a GDB process and 
it worked for me but
recently another developer reported that he has problem with finishing 
the whole X session when trying to interrupt GDB in this way, looks like 
SIGINT reached X session manager...

Whay does this signal come to parent process and can I avoid this somehow?

Thanks, Alexander


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-09-19 14:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-17  7:17 proper usage of "-exec-interrupt" Alexander Petukhov
2011-09-17 19:06 ` Joel Brobecker
2011-09-19 14:13   ` Alexander Petukhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox