This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to interrupt GDB from outside?


Hello,
I'm writing a C program that drives GDB 5.3 under
Linux and Cygwin. I succesfully execv'd GDB and
redirected its I/O using dup2 (): my program can now
send commands to GDB and parse their output.

My problem is that I didn't succeed in having my
program interrupt GDB (like a human would with ^C). I
tried sending a SIGINT signal from my program to GDB
with kill () but it didn't help: GDB does not stop
running the debugged program, it simply ignores the
SIGINT. The behavior is the same under Linux and
Cygwin.

I checked "info handle" and everyting seems ok:
Signal        Stop      Print   Pass to program 
SIGINT        Yes       Yes     No

Does anybody know how to solve this issue?

Many thanks in advance.

Marco


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]