Only define 'struct lwp_info'::thread_known if using libthread-db.
authorPedro Alves <palves@redhat.com>
Tue, 16 Apr 2013 18:22:15 +0000 (18:22 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 16 Apr 2013 18:22:15 +0000 (18:22 +0000)
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/ChangeLog
gdb/gdbserver/linux-low.h

index 07560293938f2896f56e0b487317a2e3e1240966..f4c454391969e4c0b66ee4558c35575ca46f5cae 100644 (file)
@@ -1,3 +1,8 @@
+2013-04-16  Pedro Alves  <palves@redhat.com>
+
+       * linux-low.h (struct lwp_info) <thread_known>: Move under
+       the USE_THREAD_DB #ifdef.
+
 2013-04-16  Pedro Alves  <palves@redhat.com>
 
        * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
index 834dd9133c97ab1f5de3c4ed90dd379e25e9984c..205d8039fa08e359c97598712163139e4203291b 100644 (file)
@@ -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;