From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16081 invoked by alias); 3 Jun 2009 13:49:01 -0000 Received: (qmail 16073 invoked by uid 22791); 3 Jun 2009 13:49:00 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_37,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 03 Jun 2009 13:48:54 +0000 Received: (qmail 18531 invoked from network); 3 Jun 2009 13:48:52 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 3 Jun 2009 13:48:52 -0000 From: Pedro Alves To: "Marc Khouzam" Subject: Re: [RFC] Allowing all threads of all|current process(es) to be resumed [new command + docs] Date: Wed, 03 Jun 2009 13:49:00 -0000 User-Agent: KMail/1.9.10 Cc: gdb-patches@sourceware.org References: <200905301151.52892.pedro@codesourcery.com> <6D19CA8D71C89C43A057926FE0D4ADAA0784947E@ecamlmw720.eamcs.ericsson.se> In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA0784947E@ecamlmw720.eamcs.ericsson.se> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906031449.31353.pedro@codesourcery.com> X-IsSubscribed: yes 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: 2009-06/txt/msg00033.txt.bz2 On Monday 01 June 2009 15:28:43, Marc Khouzam wrote: > Let me ask you, what is the way in non-stop to resume all threads > of the current process? -exec-continue is for a single thread, > -exec-continue --all is for all threads of all processes. Hmm, you must be thinking of something like this? Does it not work? 2008-11-17 Vladimir Prus Implement continue/interrupt of thread groups. * mi/mi-main.c (proceed_thread_callback): New. (mi_cmd_exec_continue): If --thread-group is specified, resume all threads in that group. (interrupt_thread_callback): New. (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt all threads in that group. > Your proposal addresses this issue for only for all-stop? Right, all-stop was my main concern. If we always resume all threads of all inferiors, then even "(gdb) run" to start up a new process ends up resuming other processes too. -- Pedro Alves