diff options
author | Joel Brobecker <brobecker@gnat.com> | 2013-10-01 10:56:51 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2013-10-01 10:56:51 +0000 |
commit | 97ad458125294fc16d151177c5278ea3288dfbce (patch) | |
tree | b535fcf572966f6686e618244289096e08aa5bf6 /move-if-change | |
parent | e39462cbbb93f82b920eb5fd2b593003fe896182 (diff) | |
download | gdb-97ad458125294fc16d151177c5278ea3288dfbce.zip gdb-97ad458125294fc16d151177c5278ea3288dfbce.tar.gz gdb-97ad458125294fc16d151177c5278ea3288dfbce.tar.bz2 |
[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.
Diffstat (limited to 'move-if-change')
0 files changed, 0 insertions, 0 deletions