]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdbserver/ChangeLog
[gdbserver/LynxOS]: Incomplete thread list after --attach
authorJoel Brobecker <brobecker@gnat.com>
Tue, 1 Oct 2013 10:56:51 +0000 (10:56 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 1 Oct 2013 10:56:51 +0000 (10:56 +0000)
commit97ad458125294fc16d151177c5278ea3288dfbce
treeb535fcf572966f6686e618244289096e08aa5bf6
parente39462cbbb93f82b920eb5fd2b593003fe896182
[gdbserver/LynxOS]: Incomplete thread list after --attach

The current implementation is forgetting to populate the thread list
when attaching to the process. This results in an incomplete list of
threads when debugging a threaded program.

Unfortunately, as the added comments hints, there appears to be
no way of getting the list of threads via ptrace, other than by
spawning the "ps" command, and parsing its output. Not great,
but it appears to be the best we can do.

gdb/gdbserver/ChangeLog:

        * lynx-low.c (lynx_add_threads_after_attach): New function.
        (lynx_attach): Remove call to add_thread.  Add call to
        lynx_add_threads_after_attach instead.
gdb/gdbserver/ChangeLog
gdb/gdbserver/lynx-low.c