diff options
author | davidxu <davidxu@FreeBSD.org> | 2005-04-05 11:40:58 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2005-04-05 11:40:58 +0000 |
commit | f49d76552d60290188bc055024ae8419d0e5889a (patch) | |
tree | 6d59f9cbac8bcb4a75a7ffa4593ee3903867c8f6 /gnu | |
parent | e911a0459cd4aab7095b0405d720ac72e19580b0 (diff) | |
download | FreeBSD-src-f49d76552d60290188bc055024ae8419d0e5889a.zip FreeBSD-src-f49d76552d60290188bc055024ae8419d0e5889a.tar.gz |
Print thread address.
PR: threads/76821
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/gdb/libgdb/fbsd-threads.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/usr.bin/gdb/libgdb/fbsd-threads.c b/gnu/usr.bin/gdb/libgdb/fbsd-threads.c index 64e8db7..dbd2354 100644 --- a/gnu/usr.bin/gdb/libgdb/fbsd-threads.c +++ b/gnu/usr.bin/gdb/libgdb/fbsd-threads.c @@ -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; |