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.
This commit is contained in:
Joel Brobecker 2012-12-17 11:17:12 +00:00
parent 037335a7a8
commit 8b93d60f22
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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))
{