aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2013-04-16 18:22:15 +0000
committerPedro Alves <palves@redhat.com>2013-04-16 18:22:15 +0000
commitd5c93e41a890762d1d358a59ed05ab7e71ebe048 (patch)
treee41579e2aee95593e353d9e093e444c7c2aaee82 /gdb
parent04f5fe89ae8c13d903cded6cc28924dff058ece0 (diff)
downloadgdb-d5c93e41a890762d1d358a59ed05ab7e71ebe048.zip
gdb-d5c93e41a890762d1d358a59ed05ab7e71ebe048.tar.gz
gdb-d5c93e41a890762d1d358a59ed05ab7e71ebe048.tar.bz2
Only define 'struct lwp_info'::thread_known if using libthread-db.
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-low.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 0756029..f4c4543 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@
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@.
(linux-low.o): Delete rule.
* linux-low.h: Always include "gdb_thread_db.h" instead of
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;