From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3059 invoked by alias); 17 May 2011 12:03:23 -0000 Received: (qmail 3051 invoked by uid 22791); 17 May 2011 12:03:22 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 May 2011 12:03:09 +0000 Received: (qmail 27566 invoked from network); 17 May 2011 12:03:08 -0000 Received: from unknown (HELO scottsdale.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 17 May 2011 12:03:08 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: Stepping of multithreaded application Date: Tue, 17 May 2011 12:03:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.35-28-generic; KDE/4.6.2; x86_64; ; ) Cc: Tomas Martinec References: <201105161217.37184.pedro@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105171303.06804.pedro@codesourcery.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: 2011-05/txt/msg00079.txt.bz2 On Monday 16 May 2011 16:22:49, Tomas Martinec wrote: > > I imagine you're seeing a 'Hc1', 'c', and only continuing > > thread 1 instead of all threads? > > Yes, that is right. Hmm. This is making me very nervous on changing GDB's age old behavior... Who knows which old targets out there are assuming: - "Hc 0" to mean continue all threads - "Hc $FOO" to continue/step only thread $FOO and picking the 's' (step) thread from the previous Hg ? I fear we'd be switching from one broken behavior to another. Since new stubs can just vCont, I'm now inclined to leave things as is. > > I'll test and apply your fix if nothing turns up regardless. > > Please let me know if you find a problem with the fix. I've applied this fix. Thanks. -- Pedro Alves