mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
* bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
thread.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2008-09-08 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
|
||||||
|
thread.
|
||||||
|
|
||||||
2008-09-08 Pedro Alves <pedro@codesourcery.com>
|
2008-09-08 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* corelow.c (add_to_thread_list): If this is the first time we
|
* corelow.c (add_to_thread_list): If this is the first time we
|
||||||
|
@ -422,7 +422,15 @@ bsd_uthread_find_new_threads (void)
|
|||||||
ptid_t ptid = ptid_build (pid, 0, addr);
|
ptid_t ptid = ptid_build (pid, 0, addr);
|
||||||
|
|
||||||
if (!in_thread_list (ptid) || is_exited (ptid))
|
if (!in_thread_list (ptid) || is_exited (ptid))
|
||||||
|
{
|
||||||
|
/* If INFERIOR_PTID doesn't have a tid member yet, then ptid
|
||||||
|
is still the initial thread of the process. Notify GDB
|
||||||
|
core about it. */
|
||||||
|
if (ptid_get_tid (inferior_ptid) == 0)
|
||||||
|
thread_change_ptid (inferior_ptid, ptid);
|
||||||
|
else
|
||||||
add_thread (ptid);
|
add_thread (ptid);
|
||||||
|
}
|
||||||
|
|
||||||
addr = read_memory_typed_address (addr + offset,
|
addr = read_memory_typed_address (addr + offset,
|
||||||
builtin_type_void_data_ptr);
|
builtin_type_void_data_ptr);
|
||||||
|
Reference in New Issue
Block a user