Lines 322-329
get_current_thread (void)
Link Here
|
322 |
ptid = thread_from_lwp (tmp, &th, &ti); |
322 |
ptid = thread_from_lwp (tmp, &th, &ti); |
323 |
if (in_thread_list (inferior_ptid) ) |
323 |
if (in_thread_list (inferior_ptid) ) |
324 |
{ |
324 |
{ |
|
|
325 |
struct private_thread_info *private; |
325 |
struct thread_info * ti_inf = inferior_thread(); |
326 |
struct thread_info * ti_inf = inferior_thread(); |
326 |
ti_inf->ptid = ptid; |
327 |
ti_inf->ptid = ptid; |
|
|
328 |
/* Allocate private info struct. */ |
329 |
private = xmalloc(sizeof(struct private_thread_info)); |
330 |
gdb_assert(private != NULL); |
331 |
// Thread name is assigned when printed |
332 |
memset(private, 0, sizeof(struct private_thread_info)); |
333 |
ti_inf->private = private; |
334 |
ti_inf->private_dtor = free_private_thread_info; |
327 |
} |
335 |
} |
328 |
if (!in_thread_list (ptid)) |
336 |
if (!in_thread_list (ptid)) |
329 |
{ |
337 |
{ |
Lines 441-448
fbsd_thread_activate (void)
Link Here
|
441 |
fbsd_thread_active = 1; |
449 |
fbsd_thread_active = 1; |
442 |
if (target_has_execution) |
450 |
if (target_has_execution) |
443 |
enable_thread_event_reporting (); |
451 |
enable_thread_event_reporting (); |
444 |
fbsd_thread_update_thread_list (NULL); |
|
|
445 |
get_current_thread (); |
452 |
get_current_thread (); |
|
|
453 |
fbsd_thread_update_thread_list (NULL); |
446 |
} |
454 |
} |
447 |
|
455 |
|
448 |
static void |
456 |
static void |