This is the mail archive of the gdb@sourceware.org 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]

Can I use -exec-interrupt to stop the inferior program?


 > (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


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