From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29157 invoked by alias); 1 Apr 2009 16:45:44 -0000 Received: (qmail 28620 invoked by uid 22791); 1 Apr 2009 16:45:42 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from alto.filmlight.ltd.uk (HELO a.mx.filmlight.ltd.uk) (217.40.27.25) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Wed, 01 Apr 2009 16:45:37 +0000 Received: (qmail 32053 invoked from network); 1 Apr 2009 16:45:27 -0000 Received: from dhcp-168.filmlight.ltd.uk (jamesm@10.44.0.168) by a.mx.filmlight.ltd.uk with SMTP; 1 Apr 2009 16:45:27 -0000 Cc: gdb@sourceware.org Message-Id: <5D22D5EE-71AE-46DE-86C0-6A4C58CB0021@filmlight.ltd.uk> From: James Milne To: Joel Brobecker In-Reply-To: <20090401164152.GD8930@adacore.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Interrupting target execution on Linux using GDB/MI Date: Wed, 01 Apr 2009 16:45:00 -0000 References: <0438EB51-6BDE-4174-8C8A-68A24D743C02@filmlight.ltd.uk> <20090401164152.GD8930@adacore.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-04/txt/msg00004.txt.bz2 On 1 Apr 2009, at 17:41, Joel Brobecker wrote: >> What is the correct procedure when using GDB/MI to interrupt the >> execution of the inferior process? > > There is a GDB/MI command to interrupt the execution of your program. I attempted to use that, but it does not work when GDB is being used synchronously. It only works when you are connecting to a gdbserver and GDB itself is running "asynchronously". Certainly it doesn't work on OS X when I originally tried it, which lead me to issuing SIGINT myself. Regards James Milne FilmLight Ltd.