diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-05-14 16:52:13 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-05-14 16:52:13 +0000 |
commit | 027c0295d85769f2bcf07218d4296644f129cfc5 (patch) | |
tree | e65e9bac7c11985e9b5d76e1b2856b594ba0455a /gdb/linux-thread-db.c | |
parent | dc5000e72188dd452616737a08bd11b320a8d25d (diff) | |
download | gdb-027c0295d85769f2bcf07218d4296644f129cfc5.zip gdb-027c0295d85769f2bcf07218d4296644f129cfc5.tar.gz gdb-027c0295d85769f2bcf07218d4296644f129cfc5.tar.bz2 |
* linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
as hexadecimal.
* gdb.threads/linux-dp.exp: Expect hexadecimal thread IDs.
* gdb.threads/print-threads.exp (test_all_threads): Allow
negative and hexadecimal thread IDs.
Diffstat (limited to 'gdb/linux-thread-db.c')
-rw-r--r-- | gdb/linux-thread-db.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 787bec9..63bd852 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -1013,10 +1013,10 @@ thread_db_pid_to_str (ptid_t ptid) thread_info = find_thread_pid (ptid); if (thread_info == NULL) - snprintf (buf, sizeof (buf), "Thread %ld (LWP %ld) (Missing)", + snprintf (buf, sizeof (buf), "Thread 0x%lx (LWP %ld) (Missing)", GET_THREAD (ptid), GET_LWP (ptid)); else - snprintf (buf, sizeof (buf), "Thread %ld (LWP %ld)", + snprintf (buf, sizeof (buf), "Thread 0x%lx (LWP %ld)", GET_THREAD (ptid), GET_LWP (ptid)); return buf; |