This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdbserver ps_lgetregs implementation for nptl
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: "Amit S. Kale" <amitkale at emsyssoft dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 11 Dec 2003 09:14:29 -0500
- Subject: Re: gdbserver ps_lgetregs implementation for nptl
- References: <200312111513.23927.amitkale@emsyssoft.com>
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