This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Can I use -exec-interrupt to stop the inferior program?
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: Nikolay Molchanov <Nikolay dot Molchanov at Sun dot COM>
- Cc: gdb at sourceware dot org
- Date: Tue, 16 May 2006 10:44:24 +1200
- Subject: Can I use -exec-interrupt to stop the inferior program?
- References: <4468F31E.8090805@Sun.COM>
> (gdb)
> run
> &"run\n"
> -exec-interrupt
> ^done,reason="exited",exit-code="0100"
> (gdb)
> ^error,msg="mi_cmd_exec_interrupt: Inferior not executing."
> (gdb)
>
>
> Perhaps "-exec-interrupt" does not work in gdb 6.1?
> If that's correct, can you tell me which version supports
> "-exec-interrupt"?
It doesn't currently works as you would like i.e. asynchronously, even in
CVS.
Can you get around the problem by using SIGTSTP instead of SIGINT to stop
the program? Thats what Emacs does.
--
Nick http://www.inet.net.nz/~nickrob