From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21772 invoked by alias); 30 Jul 2011 11:39:50 -0000 Received: (qmail 21763 invoked by uid 22791); 30 Jul 2011 11:39:50 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from nm3-vm0.bt.bullet.mail.ukl.yahoo.com (HELO nm3-vm0.bt.bullet.mail.ukl.yahoo.com) (217.146.182.230) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sat, 30 Jul 2011 11:39:36 +0000 Received: from [217.146.183.195] by nm3.bt.bullet.mail.ukl.yahoo.com with NNFMP; 30 Jul 2011 11:39:34 -0000 Received: from [217.146.183.206] by tm1.bt.bullet.mail.ukl.yahoo.com with NNFMP; 30 Jul 2011 11:39:34 -0000 Received: from [127.0.0.1] by omp1004.bt.mail.ukl.yahoo.com with NNFMP; 30 Jul 2011 11:39:34 -0000 Received: (qmail 41110 invoked by uid 60001); 30 Jul 2011 11:39:34 -0000 Received: from [78.146.81.90] by web86705.mail.ird.yahoo.com via HTTP; Sat, 30 Jul 2011 12:39:34 BST References: <1311947955.89527.YahooMailRC@web86708.mail.ird.yahoo.com> <20110729155438.GH5177@adacore.com> <20110730024405.GJ5177@adacore.com> Message-ID: <1312025974.40998.YahooMailRC@web86705.mail.ird.yahoo.com> Date: Sat, 30 Jul 2011 12:40:00 -0000 From: pfee@talk21.com Subject: Re: Enhancement - show old and new thread info when switching during debugging To: Joel Brobecker , Tom Tromey Cc: gdb-patches@sourceware.org In-Reply-To: <20110730024405.GJ5177@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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/msg00822.txt.bz2 > > Joel> Isn't that information already present in the previous "[Switchin= g to > > Joel> thread ...]" message? > >=20 > > We can always add an option, like "set print thread previous on" to > > control the output. >=20 > Generally speaking, I prefer to avoid introducing options unless > really necessary. In this particular case, it sounds like the most > convenient way of solving the problem is to have a convenience > variable. And it sounds like the only reason why Paul hasn't looked > at the implementation yet is due to lack of familiarity with this > code? >=20 > % grep '"bpnum"' *.c > breakpoint.c: set_internalvar_integer (lookup_internalvar ("bpnum")= ,=20=20 >num); >=20 > So, I would think that adding something similar in > thread.c:switch_to_thread would do the job. >=20 I'll look into convenience variables. Since it saves translating LWPs into= GDB=20 thread IDs and avoids output "noise", I think it's the better than my patch. I'll warn you in advance it might be a week until I develop something as I = may=20 be without Internet access for a while. Thanks for the tips on where to look next. --=20 Paul