From d5c93e41a890762d1d358a59ed05ab7e71ebe048 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 16 Apr 2013 18:22:15 +0000 Subject: [PATCH] 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 * linux-low.h (struct lwp_info) : Move under the USE_THREAD_DB #ifdef. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/linux-low.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 0756029393..f4c4543919 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2013-04-16 Pedro Alves + + * linux-low.h (struct lwp_info) : Move under + the USE_THREAD_DB #ifdef. + 2013-04-16 Pedro Alves * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@. diff --git a/gdb/gdbserver/linux-low.h b/gdb/gdbserver/linux-low.h index 834dd9133c..205d8039fa 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; -- 2.34.1