gdbserver ps_lgetregs implementation for nptl
Daniel Jacobowitz
drow@mvista.com
Thu Dec 11 14:14:00 GMT 2003
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
More information about the Gdb
mailing list