From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27586 invoked by alias); 29 Mar 2011 21:59:34 -0000 Received: (qmail 27570 invoked by uid 22791); 29 Mar 2011 21:59:34 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-iy0-f169.google.com (HELO mail-iy0-f169.google.com) (209.85.210.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 29 Mar 2011 21:59:29 +0000 Received: by iyf13 with SMTP id 13so766789iyf.0 for ; Tue, 29 Mar 2011 14:59:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.134.2 with SMTP id j2mr54752ict.191.1301435969212; Tue, 29 Mar 2011 14:59:29 -0700 (PDT) Received: by 10.43.133.2 with HTTP; Tue, 29 Mar 2011 14:59:29 -0700 (PDT) In-Reply-To: References: Date: Tue, 29 Mar 2011 21:59:00 -0000 Message-ID: Subject: Re: How to switch threads in gdb while a thread is being blocked From: Alexandru Sutii To: Tom Tromey Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2011-03/txt/msg00181.txt.bz2 Hello, Tom! Thanks a lot for your answer. With target-async on I have managed to step the processes even when one of them blocks. Thank you. -- Alex. On Tue, Mar 29, 2011 at 6:04 PM, Tom Tromey wrote: >>>>>> "Alexandru" =3D=3D Alexandru Sutii writes: > > Alexandru> Is there a way to switch threads in gdb after the current > Alexandru> thread/process blocks? > > You want target-async. =A0See the "Background Execution" node in the > manual; there are corresponding MI commands (and docs) too. =A0You may > also want non-stop. > > Tom >