From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19527 invoked by alias); 15 May 2006 22:44:56 -0000 Received: (qmail 19518 invoked by uid 22791); 15 May 2006 22:44:56 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 15 May 2006 22:44:54 +0000 Received: from farnswood.snap.net.nz (p202-124-112-223.snap.net.nz [202.124.112.223]) by viper.snap.net.nz (Postfix) with ESMTP id 403BA75761A; Tue, 16 May 2006 10:44:54 +1200 (NZST) Received: by farnswood.snap.net.nz (Postfix, from userid 500) id 229DE627ED; Mon, 15 May 2006 23:44:25 +0100 (BST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17513.1096.510561.610548@farnswood.snap.net.nz> Date: Tue, 16 May 2006 11:35:00 -0000 To: Nikolay Molchanov Cc: gdb@sourceware.org Subject: Can I use -exec-interrupt to stop the inferior program? In-Reply-To: <4468F31E.8090805@Sun.COM> References: <4468F31E.8090805@Sun.COM> X-Mailer: VM 7.19 under Emacs 22.0.50.52 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00232.txt.bz2 > (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