aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/lynx-low.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-12-17 11:17:12 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-12-17 11:17:12 +0000
commit8b93d60f223f35114d41564aa50a417d4285438e (patch)
treec86f628f354e1edbdffa6cc4adf12a4ef2e4ba03 /gdb/gdbserver/lynx-low.c
parent037335a7a8203e0edafe636413b92f59717c9d2f (diff)
downloadgdb-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/lynx-low.c')
-rw-r--r--gdb/gdbserver/lynx-low.c6
1 files changed, 5 insertions, 1 deletions
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))
{