Print thread address.

PR: threads/76821
This commit is contained in:
David Xu 2005-04-05 11:40:58 +00:00
parent 2ec2da8602
commit 0d6c666e74
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144664

View File

@ -918,13 +918,13 @@ fbsd_thread_pid_to_str (ptid_t ptid)
if (ti.ti_lid != 0)
{
snprintf (buf, sizeof (buf), "Thread %ld (LWP %d)",
GET_THREAD (ptid), ti.ti_lid);
snprintf (buf, sizeof (buf), "Thread %p (LWP %d)",
th.th_thread, ti.ti_lid);
}
else
{
snprintf (buf, sizeof (buf), "Thread %ld (%s)",
GET_THREAD (ptid), thread_db_state_str (ti.ti_state));
snprintf (buf, sizeof (buf), "Thread %p (%s)",
th.th_thread, thread_db_state_str (ti.ti_state));
}
return buf;