diff options
author | Daniel Jacobowitz <dan@debian.org> | 2007-05-14 16:52:13 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2007-05-14 16:52:13 +0000 |
commit | 81d4de755deca785b3d278c5ee3d0b35a7906da2 (patch) | |
tree | 221c0cf63966e956eadfffca01fa02271845816c /gdb/linux-thread-db.c | |
parent | 32445dae17ad6bc15945d3b2d3c8acadfe99feb6 (diff) | |
download | gdb-81d4de755deca785b3d278c5ee3d0b35a7906da2.tar.gz |
* 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 787bec9032d..63bd8525386 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; |