diff options
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/lynx-low.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 31dccbd..8ba20b0 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,10 @@ 2012-12-17 Joel Brobecker <brobecker@adacore.com> + * lynx-low.c (lynx_wait_1): Add debug trace before adding + new thread. + +2012-12-17 Joel Brobecker <brobecker@adacore.com> + * lynx-low.c (ptrace_request_to_str): Add handling for PTRACE_GETTRACESIG. diff --git a/gdb/gdbserver/lynx-low.c b/gdb/gdbserver/lynx-low.c index a19530b..3c217e2 100644 --- a/gdb/gdbserver/lynx-low.c +++ b/gdb/gdbserver/lynx-low.c @@ -448,7 +448,11 @@ retry: for non-threaded applications where the new-thread events are not generated. */ if (!find_thread_ptid (new_ptid)) - add_thread (new_ptid, NULL); + { + lynx_debug ("New thread: (pid = %d, tid = %d)", + lynx_ptid_get_pid (new_ptid), lynx_ptid_get_tid (new_ptid)); + add_thread (new_ptid, NULL); + } if (WIFSTOPPED (wstat)) { |