From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20639 invoked by alias); 12 Feb 2010 14:57:28 -0000 Received: (qmail 20623 invoked by uid 22791); 12 Feb 2010 14:57:26 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS 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; Fri, 12 Feb 2010 14:57:21 +0000 Received: (qmail 31777 invoked from network); 12 Feb 2010 14:57:20 -0000 Received: from unknown (HELO wind.localnet) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 12 Feb 2010 14:57:20 -0000 From: Vladimir Prus To: Marc Khouzam Subject: Re: [MI] -thread-select using the --thread option Date: Fri, 12 Feb 2010 14:57:00 -0000 User-Agent: KMail/1.12.2 (Linux/2.6.31-14-generic-pae; KDE/4.3.2; i686; ; ) References: In-Reply-To: Cc: gdb@sources.redhat.com MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201002121757.16515.vladimir@codesourcery.com> 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: 2010-02/txt/msg00095.txt.bz2 On Friday 12 February 2010 17:54:44 you wrote: > > > -----Original Message----- > > From: gdb-owner@sourceware.org > > [mailto:gdb-owner@sourceware.org] On Behalf Of Vladimir Prus > > Sent: Friday, February 12, 2010 5:30 AM > > To: gdb@sources.redhat.com > > Subject: Re: [MI] -thread-select using the --thread option > > > > Marc Khouzam wrote: > > > > > Hi, > > > > > > I just realized that DSF-GDB (with GDB 7.0), when forced to > > use -thread-select, > > > is adding the --thread option to it. So I see > > > > > > -thread-select --thread 1 1 > > > > > > This will happen before using a CLI command ('jump'), for example. > > > > > > I'm assuming I should just turn off the use of the --thread > > option for > > > -thread-select. I just wanted to check with you experts if it truly > > > is that simple. > > > > Well, the officially blessed way is to never use -thread-select in > > the first place ;-) If you are going to use it, then well, omitting > > --thread seems reasonable. > > Thanks > > Whenever I use an MI command I use --thread instead of -thread-select, > but when I have to use a CLI command I have to use -thread-select. Why? I though that: -interpreter-exec --thread 1 "cli" "the command" should work just fine. - Volodya