Print thread address.
PR: threads/76821
This commit is contained in:
parent
2ec2da8602
commit
0d6c666e74
@ -918,13 +918,13 @@ fbsd_thread_pid_to_str (ptid_t ptid)
|
|||||||
|
|
||||||
if (ti.ti_lid != 0)
|
if (ti.ti_lid != 0)
|
||||||
{
|
{
|
||||||
snprintf (buf, sizeof (buf), "Thread %ld (LWP %d)",
|
snprintf (buf, sizeof (buf), "Thread %p (LWP %d)",
|
||||||
GET_THREAD (ptid), ti.ti_lid);
|
th.th_thread, ti.ti_lid);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
snprintf (buf, sizeof (buf), "Thread %ld (%s)",
|
snprintf (buf, sizeof (buf), "Thread %p (%s)",
|
||||||
GET_THREAD (ptid), thread_db_state_str (ti.ti_state));
|
th.th_thread, thread_db_state_str (ti.ti_state));
|
||||||
}
|
}
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user