From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18674 invoked by alias); 23 Jun 2003 15:13:12 -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 8058 invoked from network); 23 Jun 2003 14:54:28 -0000 Received: from unknown (HELO calvin.codito.com) (203.197.87.98) by sources.redhat.com with SMTP; 23 Jun 2003 14:54:28 -0000 Received: from numenor.codito.co.in (numenor.codito.co.in [192.168.100.52]) by calvin.codito.com (8.12.5/8.12.5) with ESMTP id h5NEqMhk007910; Mon, 23 Jun 2003 20:22:43 +0530 Subject: Re: Problem with multiple threads using gdbserver on x86. From: Ramana Radhakrishnan Reply-To: ramana@codito.com To: Daniel Jacobowitz Cc: gdb@sources.redhat.com In-Reply-To: <20030623132811.GA30502@nevyn.them.org> References: <1056365816.1389.20.camel@numenor.codito.co.in> <20030623124618.GA24330@nevyn.them.org> <1056373839.13118.2.camel@numenor.codito.co.in> <20030623131606.GA25130@nevyn.them.org> <20030623132811.GA30502@nevyn.them.org> Content-Type: text/plain Organization: Codito Technologies Message-Id: <1056380381.13489.30.camel@numenor.codito.co.in> Mime-Version: 1.0 Date: Mon, 23 Jun 2003 15:13:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2003-06/txt/msg00448.txt.bz2 On Mon, 2003-06-23 at 18:58, Daniel Jacobowitz wrote: > I dunno. Probably just providing a stub for ps_get_thread_area > (spelling?) will be enough to make it work. there does not seem to be any reference to this function anywhere in the gdbserver code that i have. maybe i have a very old version but the source has not changed for the last 12 months or so for the thread-db.c file. just checked that on cvs. the error seems to come in thread_db_init() and precisely when it tries to find the new threads. could someone explain why this code sits inside such a function . isnt this strange?? static void linux_look_up_symbols (void) { #ifdef USE_THREAD_DB if (using_threads) return; using_threads = thread_db_init (); #endif } > > On Mon, Jun 23, 2003 at 06:59:51PM +0530, ramana wrote: > > could you give me a hint as to what needs to be done. i am sure i can find > > free time to patch it up myself. would give me a chance to fool around with > > some gdb stuff, things that i have been itching to do . > > regards > > Ramana > > > > On Mon, 23 Jun 2003 09:16:06 -0400, Daniel Jacobowitz > > wrote: > > > > >On Mon, Jun 23, 2003 at 06:40:40PM +0530, Ramana Radhakrishnan wrote: > > >> > > >>> It works perfectly fine for me. I recommend you ask Red Hat; I know > > >>> that gdbserver does not yet support NPTL so it's possible that they > > >>> have disabled threading. > > >> > > >>I tried it again with gdbserver and gdb-5.3 rebuilt from the sources . > > >>with no luck . any other ideas. > > > > > >That won't support NPTL either :) > > > > > >I suspect gdbserver + threads is not usable on RH9 until someone > > >patches gdbserver to support it. I don't have a system to try this on > > >myself, so someone else will have to do it. > > > > > > > > > > > -- > > Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ > >