From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32380 invoked by alias); 21 Jun 2002 22:04:07 -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 32362 invoked from network); 21 Jun 2002 22:04:05 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 21 Jun 2002 22:04:05 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 4C10C3D99; Fri, 21 Jun 2002 18:04:05 -0400 (EDT) Message-ID: <3D13A2D5.70801@cygnus.com> Date: Fri, 21 Jun 2002 15:04:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020613 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jim Blandy Cc: gdb@sources.redhat.com Subject: Re: GDB support for thread-local storage References: <20020619160004.38A625EA11@zwingli.cygnus.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-06/txt/msg00180.txt.bz2 > /* 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? Andrew