From 8b93d60f223f35114d41564aa50a417d4285438e Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Mon, 17 Dec 2012 11:17:12 +0000 Subject: lynx-low: Add debug trace when new thread is discovered. gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_wait_1): Add debug trace before adding new thread. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/lynx-low.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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 + * lynx-low.c (lynx_wait_1): Add debug trace before adding + new thread. + +2012-12-17 Joel Brobecker + * 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)) { -- cgit v1.1