From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4312 invoked by alias); 29 Jun 2008 05:47:54 -0000 Received: (qmail 4303 invoked by uid 22791); 29 Jun 2008 05:47:54 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 29 Jun 2008 05:47:37 +0000 Received: (qmail 16387 invoked from network); 29 Jun 2008 05:47:35 -0000 Received: from unknown (HELO wind.local) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 29 Jun 2008 05:47:35 -0000 From: Vladimir Prus To: "Marc Khouzam" Subject: Re: [MI non-stop 05/11, RFA] -exec-continue/-exec-interrupt --all Date: Sun, 29 Jun 2008 06:05:00 -0000 User-Agent: KMail/1.9.9 Cc: gdb-patches@sources.redhat.com References: <200806282045.39438.vladimir@codesourcery.com> <6D19CA8D71C89C43A057926FE0D4ADAA04E1BD86@ecamlmw720.eamcs.ericsson.se> In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA04E1BD86@ecamlmw720.eamcs.ericsson.se> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806290947.37955.vladimir@codesourcery.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00573.txt.bz2 On Saturday 28 June 2008 22:10:19 Marc Khouzam wrote: > > +void > > +interrupt_target_1 (int all_threads) > > +{ > > + if (non_stop) > > + { > > + ptid_t ptid; > > + > > + if (all_threads) > > + ptid = minus_one_ptid; > > + else > > + ptid = inferior_ptid; > > + > > + target_stop_ptid (ptid); > > + } > > + else > > + target_stop (); > > +} > > + > > /* Stop the execution of the target while running in async mode, in > > the backgound. In all-stop, stop the whole process. In non-stop > > mode, stop the current thread only by default, or stop all threads > > @@ -2170,19 +2194,7 @@ interrupt_target_command (char *args, int from_tty) > > if (!non_stop && all_threads) > > error (_("-a is meaningless in all-stop mode.")); > > Can this error be printed for an MI command? It cannot. MI invokes interrupt_target_1, never interrupt_target_command. - Volodya