This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
How to interrupt GDB from outside?
- From: Marco Zandonadi <marco_zandonadi at yahoo dot com>
- To: gdb at sources dot redhat dot com
- Date: Mon, 17 Nov 2003 23:43:42 -0800 (PST)
- Subject: 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