From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15038 invoked by alias); 30 Jan 2006 13:32:23 -0000 Received: (qmail 15029 invoked by uid 22791); 30 Jan 2006 13:32:21 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 30 Jan 2006 13:32:19 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1F3Z8C-0007xR-Vo for gdb@sources.redhat.com; Mon, 30 Jan 2006 14:31:46 +0100 Received: from zigzag.lvk.cs.msu.su ([158.250.17.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Jan 2006 14:31:44 +0100 Received: from ghost by zigzag.lvk.cs.msu.su with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Jan 2006 14:31:44 +0100 To: gdb@sources.redhat.com From: Vladimir Prus Subject: $thread convenience variable Date: Mon, 30 Jan 2006 20:19:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.8.2 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00332.txt.bz2 Hello! Is there some convenience variable that holds the number of the current thread, or alternatively, the thread where breakpoint was hit. Such a variable would allow me to write breakpoint foo.cpp:10 if $thread==1 || $thread==2 If I understand correctly, at the moment gdb can't specify arbitrary condition on thread number for breakpoint. A breakpoint is either global, or for one thread. If such variable does not exist, does it look like a good addition? - Volodya