From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25248 invoked by alias); 30 Jul 2011 12:40:07 -0000 Received: (qmail 25239 invoked by uid 22791); 30 Jul 2011 12:40:07 -0000 X-SWARE-Spam-Status: No, hits=-7.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 30 Jul 2011 12:39:49 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6UCdnqU027596 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 30 Jul 2011 08:39:49 -0400 Received: from host1.jankratochvil.net (ovpn-116-20.ams2.redhat.com [10.36.116.20]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p6UCdlDg005188 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 30 Jul 2011 08:39:48 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p6UCdkB1000310; Sat, 30 Jul 2011 14:39:46 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p6UCdj0g000309; Sat, 30 Jul 2011 14:39:45 +0200 Date: Sat, 30 Jul 2011 22:07:00 -0000 From: Jan Kratochvil To: pfee@talk21.com Cc: gdb-patches@sourceware.org Subject: Re: Enhancement - show old and new thread info when switching during debugging Message-ID: <20110730123945.GA32478@host1.jankratochvil.net> References: <1311947955.89527.YahooMailRC@web86708.mail.ird.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1311947955.89527.YahooMailRC@web86708.mail.ird.yahoo.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2011-07/txt/msg00824.txt.bz2 On Fri, 29 Jul 2011 15:59:15 +0200, pfee@talk21.com wrote: > This is useful if the switch was not intended If not obvious maybe in such case maybe you do not want the switching. (gdb) set target-async on (gdb) set non-stop on (gdb) run [...] Breakpoint 1, start (arg=0x0) at /home/jkratoch/t/threadit2.c:15 15 sleep (100); (gdb) info threads 2 Thread 0x7ffff7fd2700 (LWP 32656) start (arg=0x0) at /home/jkratoch/t/threadit2.c:15 * 1 Thread 0x7ffff7fd3720 (LWP 32653) (running) GDB stayed at thread 1, thread 2 was stopped by that Breakpoint 1. But sure non-stop mode is a bit different behavior from the all-stop mode. Regards, Jan