This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] remove struct process_info.tid
- From: dje at google dot com (Doug Evans)
- To: gdb-patches at sourceware dot org
- Date: Sun, 7 Dec 2008 20:20:25 -0800 (PST)
- Subject: [RFA] remove struct process_info.tid
Hi. I can't find any place where process_info.tid is used.
Ok to check in?
2008-12-07 Doug Evans <dje@google.com>
* linux-low.h (struct process_info): Delete member tid, unused.
* thread-db.c (find_one_thread): Update.
(maybe_attach_thread): Update.
Index: linux-low.h
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/linux-low.h,v
retrieving revision 1.23
diff -u -p -u -p -r1.23 linux-low.h
--- linux-low.h 28 Feb 2008 05:54:09 -0000 1.23
+++ linux-low.h 8 Dec 2008 04:16:39 -0000
@@ -130,7 +130,6 @@ struct process_info
struct thread_resume *resume;
int thread_known;
- unsigned long tid;
#ifdef HAVE_THREAD_DB_H
/* The thread handle, used for e.g. TLS access. Only valid if
THREAD_KNOWN is set. */
Index: thread-db.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/thread-db.c,v
retrieving revision 1.15
diff -u -p -u -p -r1.15 thread-db.c
--- thread-db.c 1 Jan 2008 22:53:14 -0000 1.15
+++ thread-db.c 8 Dec 2008 04:16:39 -0000
@@ -280,7 +280,6 @@ find_one_thread (int lwpid)
return 0;
process->thread_known = 1;
- process->tid = ti.ti_tid;
process->th = th;
return 1;
@@ -313,7 +312,6 @@ maybe_attach_thread (const td_thrhandle_
process = inferior_target_data (inferior);
- process->tid = ti_p->ti_tid;
process->thread_known = 1;
process->th = *th_p;