From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12273 invoked by alias); 11 Dec 2003 14:14:30 -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 12266 invoked from network); 11 Dec 2003 14:14:30 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 11 Dec 2003 14:14:30 -0000 Received: from drow by nevyn.them.org with local (Exim 4.24 #1 (Debian)) id 1AURaH-0006ri-Si; Thu, 11 Dec 2003 09:14:29 -0500 Date: Thu, 11 Dec 2003 14:14:00 -0000 From: Daniel Jacobowitz To: "Amit S. Kale" Cc: gdb@sources.redhat.com Subject: Re: gdbserver ps_lgetregs implementation for nptl Message-ID: <20031211141429.GB26315@nevyn.them.org> Mail-Followup-To: "Amit S. Kale" , gdb@sources.redhat.com References: <200312111513.23927.amitkale@emsyssoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200312111513.23927.amitkale@emsyssoft.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-12/txt/msg00171.txt.bz2 On Thu, Dec 11, 2003 at 03:13:23PM +0530, Amit S. Kale wrote: > Hi, > > I am trying to debug nptl programs using gdbserver on x86 platform. First > problem I found was missing ps_get_thread_area, which was easy to copy from > the implementation in gdb. Then error return from ps_lgetregs caused a > problem. ps_lgetregs has come code, though it's commented out. Any ideas on > completing that code? I've been meaning to make it work with NPTL and not found the time... However, it will take more than making it load to make it work. I expect that it will also require an extension to the remote protocol to query the thread base address. ps_get_thread_area in LinuxThreads was only called by functions that gdbserver did not use. If it's necessary for LinuxThreads - it appears to be - then you'll have to supply a working version. This will require describing register sets in gdbserver, which it already can do on some platforms (see the code that uses PTRACE_GETREGS). -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer