From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6872 invoked by alias); 11 May 2008 14:40:53 -0000 Received: (qmail 6861 invoked by uid 22791); 11 May 2008 14:40:52 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 11 May 2008 14:40:25 +0000 Received: from kahikatea.snap.net.nz (204.63.255.123.dynamic.snap.net.nz [123.255.63.204]) by viper.snap.net.nz (Postfix) with ESMTP id D4A4E3D9EDF; Mon, 12 May 2008 02:40:17 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 4B95B8FC6D; Mon, 12 May 2008 02:40:12 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18471.1355.909663.303640@kahikatea.snap.net.nz> Date: Sun, 11 May 2008 16:13:00 -0000 To: Vladimir Prus Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] Report the main thread. In-Reply-To: <200805111829.21105.vladimir@codesourcery.com> References: <18469.39280.284106.858072@kahikatea.snap.net.nz> <18470.65050.501601.790988@kahikatea.snap.net.nz> <200805111829.21105.vladimir@codesourcery.com> X-Mailer: VM 7.19 under Emacs 22.2.50.2 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: 2008-05/txt/msg00354.txt.bz2 > > Currently the new_thread observer only declares struct thread_info > > What do you mean? The observer does not declare struct thread_info, it > declares a parameter having type 'struct thread_info'. struct thread_info is declared in observer.h (through observer.sh) which is included in annotate.c > > and not it's > > members so I can't identify the thread number in annotate.c > > struct thread_info is defined in gdbthread.h. What prevents you from > including that header? I think the idea is not to expose the internals to other parts of the code. -- Nick http://www.inet.net.nz/~nickrob