From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10709 invoked by alias); 21 Jun 2002 22:41:36 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 10702 invoked from network); 21 Jun 2002 22:41:34 -0000 Received: from unknown (HELO zwingli.cygnus.com) (208.245.165.35) by sources.redhat.com with SMTP; 21 Jun 2002 22:41:34 -0000 Received: by zwingli.cygnus.com (Postfix, from userid 442) id D07C85EA11; Fri, 21 Jun 2002 17:41:32 -0500 (EST) To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: GDB support for thread-local storage References: <20020619160004.38A625EA11@zwingli.cygnus.com> <3D13A2D5.70801@cygnus.com> From: Jim Blandy Date: Fri, 21 Jun 2002 15:41:00 -0000 In-Reply-To: <3D13A2D5.70801@cygnus.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-06/txt/msg00183.txt.bz2 Andrew Cagney writes: > > /* Get address of thread local variable. */ > > extern td_err_e td_thr_tls_get_addr (const td_thrhandle_t *__th, > > struct link_map *__map, size_t __offset, > > void **__address); > > This takes a thread handle, an entry from the dynamic linker's link > > map, and an offset, and sets *__address to point to the base of that > > thread and module's thread-local storage, plus the offset. It returns > > an error code if the space hasn't been allocated yet. > > What does GDB do if there isn't [yet] any allocated local storage? It returns TD_NOTALLOC.