2012-05-11 Yao Qi <yao@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Fri, 11 May 2012 13:34:34 +0000 (13:34 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 11 May 2012 13:34:34 +0000 (13:34 +0000)
commitbde24c0a34fd79fb9ee6c7a355a46917cd866d26
tree8e28037d0930c5676dd345da19fc4ca6b0f615d3
parent99700d6febe92cfcd0ce5b62cad8472020e6c248
2012-05-11  Yao Qi  <yao@codesourcery.com>
    Pedro Alves  <palves@redhat.com>

* linux-low.c (enum stopping_threads_kind): New.
(stopping_threads): Change type to `enum stopping_threads_kind'.
(handle_extended_wait): If stopping and suspending threads, leave
the new_lwp suspended too.
(linux_wait_for_event): Adjust.
(stop_all_lwps): Set `stopping_threads' to
STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
whether we're suspending threads or just stopping them.  Assert no
recursion happens.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c