summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>2004-12-03 00:05:56 +0000
committerJim Blandy <jimb@redhat.com>2004-12-03 00:05:56 +0000
commit3b8624a9253fba5d6c867f07878b1ced479583b9 (patch)
treece671c875af34d25473fbc402aee7b401269c9d7
parent0b0acd312b060334895c90d660c191c74ea6217e (diff)
downloadgdb-3b8624a9253fba5d6c867f07878b1ced479583b9.tar.gz
* thread-db.c (thread_db_thread_info): Produce output that more
closely resembles GDB's native thread output, to mollify the GDB test suite.
-rw-r--r--rda/unix/ChangeLog4
-rw-r--r--rda/unix/thread-db.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/rda/unix/ChangeLog b/rda/unix/ChangeLog
index 8d31fa29a02..45fa9c83e90 100644
--- a/rda/unix/ChangeLog
+++ b/rda/unix/ChangeLog
@@ -1,5 +1,9 @@
2004-12-02 Jim Blandy <jimb@redhat.com>
+ * thread-db.c (thread_db_thread_info): Produce output that more
+ closely resembles GDB's native thread output, to mollify the GDB
+ test suite.
+
* thread-db.c (thread_db_check_child_state): No need to call
lwp_pool_stop_all twice; update_thread_list stops any new threads.
diff --git a/rda/unix/thread-db.c b/rda/unix/thread-db.c
index fdb7034a097..3a343dc85ec 100644
--- a/rda/unix/thread-db.c
+++ b/rda/unix/thread-db.c
@@ -1733,7 +1733,7 @@ thread_db_thread_info (struct gdbserv *serv, struct gdbserv_thread *thread)
/* When a thread's LWP has exited, NPTL reports its ti_lid as
being equal to that of the main process. Which is a little
confusing. So print the pid in a helpfully detailed way. */
- sprintf (info, "Type %s State %s PID %d%s",
+ sprintf (info, "Type %s State %s LWP %d%s",
thread_db_type_str (thread->ti.ti_type),
thread_db_state_str (thread->ti.ti_state),
thread->ti.ti_lid,