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.
+2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
+ as hexadecimal.
+
2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
* jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
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;
+2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * gdb.threads/linux-dp.exp: Expect hexadecimal thread IDs.
+ * gdb.threads/print-threads.exp (test_all_threads): Allow
+ negative and hexadecimal thread IDs.
+
2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
* gdb.java/jprint.java (public): Avoid invalid call to static
-re "info threads\r\n" {
exp_continue
}
- -re "^. +(\[0-9\]+ Thread \[-0-9\]+) \[^\n\]*\n" {
+ -re "^. +(\[0-9\]+ Thread 0x\[0-9a-f\]+) \[^\n\]*\n" {
verbose -log "found thread $expect_out(1,string)" 2
lappend threads_before $expect_out(1,string)
exp_continue
-re "info threads\r\n" {
exp_continue
}
- -re "^. +(\[0-9\]+ Thread \[-0-9\]+) \[^\n\]*\n" {
+ -re "^. +(\[0-9\]+ Thread 0x\[0-9a-f\]+) \[^\n\]*\n" {
set name $expect_out(1,string)
for {set j 0} {$j != [llength $threads_before] } {incr j} {
if {$name == [lindex $threads_before $j]} {
fail "all threads ran once ($name) (total $i threads ran)"
}
}
- -re "Program received signal SIGTRAP.*(Thread \[0-9\]* \\(zombie\\)|0x00000000 in ).*$gdb_prompt $" {
+ -re "Program received signal SIGTRAP.*(Thread \[-0-9a-fx\]* \\(zombie\\)|0x00000000 in ).*$gdb_prompt $" {
if { $kill == 1 } {
kfail "gdb/1265" "Running threads ($name) (zombie thread)"
} else {