From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8051 invoked by alias); 21 Jun 2002 22:31:28 -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 8042 invoked from network); 21 Jun 2002 22:31:25 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 21 Jun 2002 22:31:25 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 27E3F3D66; Fri, 21 Jun 2002 18:31:25 -0400 (EDT) Message-ID: <3D13A93D.50409@cygnus.com> Date: Fri, 21 Jun 2002 15:31: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: Daniel Jacobowitz Cc: Jim Blandy , gdb@sources.redhat.com Subject: Re: GDB support for thread-local storage References: <20020619160004.38A625EA11@zwingli.cygnus.com> <3D1282DD.7000508@cygnus.com> <20020621014821.GA7608@nevyn.them.org> <3D135FE5.6090605@cygnus.com> <20020621173249.GA11443@nevyn.them.org> <20020621201716.GA23307@nevyn.them.org> <20020621210302.GA25010@nevyn.them.org> <3D139E9D.70401@cygnus.com> <20020621215532.GA27228@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-06/txt/msg00181.txt.bz2 >> > I'd call the libthread_db >> >approach broken for this purpose (a little outside its design scope >> >perhaps). > >> >> I think it reflects limitations of the current libthread-db interface >> rather than a broken approach. > > > I disagree... the concept of having a "libthread_db" with an interface > involves it being a target library, part of the system. Unless you > change its "interface" to be a data file rather than code, it requires > access to a target in order to interpret target data. That's my whole > objection to it. Sorry, I'm lost here. Say, instead of a libthread_db, we had gdb/libthread-db.c which could be compiled on all systems. It would have some sort of procedural interface, and would grub around in target data to find thread X lwp maps. However, it could be written in a way that was host architecture netural. Andrew