From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11098 invoked by alias); 1 Apr 2010 13:21:27 -0000 Received: (qmail 11078 invoked by uid 22791); 1 Apr 2010 13:21:25 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=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; Thu, 01 Apr 2010 13:21:21 +0000 Received: (qmail 25016 invoked from network); 1 Apr 2010 13:21:19 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 1 Apr 2010 13:21:19 -0000 From: Pedro Alves To: "Pierre Muller" Subject: Re: [RFC-v5] Add windows OS Thread Information Block Date: Thu, 01 Apr 2010 13:21:00 -0000 User-Agent: KMail/1.12.2 (Linux/2.6.31-20-generic; KDE/4.3.2; x86_64; ; ) Cc: gdb-patches@sourceware.org References: <000901c9f5ef$4ee06f10$eca14d30$@u-strasbg.fr> <201004011221.36972.pedro@codesourcery.com> <001801cad19a$cbcc40d0$6364c270$@muller@ics-cnrs.unistra.fr> In-Reply-To: <001801cad19a$cbcc40d0$6364c270$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201004011421.17006.pedro@codesourcery.com> 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: 2010-04/txt/msg00011.txt.bz2 On Thursday 01 April 2010 13:56:50, Pierre Muller wrote: > > Does the new packet return the TIB, or the TLB? > The thread local base is the address of > the Thread Information Block which itself > is a block of memory (usually of size 0x1000) > containing thread specific information. Okay, thanks, that makes the terminology clearer. > > The object is $_tlb now, isn't it? > This object is a pointer in debuggee memory > to the Thread Information Block. If the TLB is a pointer to the TIB, then if "ptype $_tlb" shows something not a pointer, something isn't right, wouldn't you say? Isn't "ptype $_tlb"/"p $_tib" printing the _TIB_ instead? This is where things are still confusing. > +@item $_tlb > +@vindex $_tlb@r{, convenience variable} > +The variable @code{$_tlb} is automatically set for Windows OS running > +applications in native mode or connected to a gdbserver that supports > +@code{qGetTIBAddr} requests. This variable contains the address of the > thread > +information block. Does the variable really contain an address? -- Pedro Alves