This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 6/6] Only define 'struct lwp_info'::thread_known if using libthread-db.
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 16 Apr 2013 19:31:25 +0100
- Subject: [PATCH 6/6] Only define 'struct lwp_info'::thread_known if using libthread-db.
- References: <20130416183043 dot 540 dot 32214 dot stgit at brno dot lan>
A small cleanup. 'struct lwp_info'::thread_known is only useful for
thread-db.c.
gdbserver/
2013-04-16 Pedro Alves <palves@redhat.com>
* linux-low.h (struct lwp_info) <thread_known>: Move under
the USE_THREAD_DB #ifdef.
---
gdb/gdbserver/linux-low.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/gdbserver/linux-low.h b/gdb/gdbserver/linux-low.h
index 834dd91..205d803 100644
--- a/gdb/gdbserver/linux-low.h
+++ b/gdb/gdbserver/linux-low.h
@@ -267,8 +267,8 @@ struct lwp_info
stepping over later when it is resumed. */
int need_step_over;
- int thread_known;
#ifdef USE_THREAD_DB
+ int thread_known;
/* The thread handle, used for e.g. TLS access. Only valid if
THREAD_KNOWN is set. */
td_thrhandle_t th;