diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-12-17 11:17:12 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-12-17 11:17:12 +0000 |
commit | 8b93d60f223f35114d41564aa50a417d4285438e (patch) | |
tree | c86f628f354e1edbdffa6cc4adf12a4ef2e4ba03 /gdb/gdbserver | |
parent | 037335a7a8203e0edafe636413b92f59717c9d2f (diff) | |
download | gdb-8b93d60f223f35114d41564aa50a417d4285438e.zip gdb-8b93d60f223f35114d41564aa50a417d4285438e.tar.gz gdb-8b93d60f223f35114d41564aa50a417d4285438e.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdbserver')
-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)) { |