This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v3 04/10] Remove support for thread events without PTRACE_EVENT_CLONE in GDBServer.
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Antoine Tremblay <antoine dot tremblay at ericsson dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Wed, 25 Nov 2015 16:48:32 +0000
- Subject: Re: [PATCH v3 04/10] Remove support for thread events without PTRACE_EVENT_CLONE in GDBServer.
- Authentication-results: sourceware.org; auth=none
- References: <1448287968-12907-1-git-send-email-antoine dot tremblay at ericsson dot com> <1448287968-12907-5-git-send-email-antoine dot tremblay at ericsson dot com>
Antoine Tremblay <antoine.tremblay@ericsson.com> writes:
> ---
> gdb/gdbserver/linux-low.c | 2 +-
> gdb/gdbserver/linux-low.h | 2 +-
> gdb/gdbserver/thread-db.c | 153 ++--------------------------------------------
> 3 files changed, 6 insertions(+), 151 deletions(-)
>
> diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
> index f793a78..ce9cc2e 100644
> --- a/gdb/gdbserver/linux-low.c
> +++ b/gdb/gdbserver/linux-low.c
> @@ -5515,7 +5515,7 @@ linux_look_up_symbols (void)
> /* If the kernel supports tracing clones, then we don't need to
> use the magic thread event breakpoint to learn about
> threads. */
Nit: we no longer need this comment above. We can remove it too.
> - thread_db_init (!linux_supports_traceclone ());
> + thread_db_init ();
Patch looks good to me.
--
Yao (éå)