This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] xtensa: implement NPTL helpers
- From: Pedro Alves <palves at redhat dot com>
- To: Max Filippov <jcmvbkbc at gmail dot com>, gdb-patches at sourceware dot org
- Cc: Maxim Grigoriev <maxim2405 at gmail dot com>, Woody LaRue <larue at cadence dot com>, Marc Gauthier <marc at cadence dot com>
- Date: Thu, 20 Aug 2015 18:50:49 +0100
- Subject: Re: [PATCH] xtensa: implement NPTL helpers
- Authentication-results: sourceware.org; auth=none
- References: <1440055134-9252-1-git-send-email-jcmvbkbc at gmail dot com>
On 08/20/2015 08:18 AM, Max Filippov wrote:
> These changes allow debugging multithreaded NPTL xtensa applications.
>
> 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
> gdb/
> * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
> (ps_get_thread_area): New function.
> * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
> set_gdbarch_fetch_tls_load_module_address to enable TLS support.
> * xtensa-tdep.c (xtensa_gdbarch_init): Call gdbarch_init_osabi
> to register xtensa-specific hooks.
> * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
> member.
LGTM. Looks like gdbserver's linux-xtensa-low.c is also missing
the ps_get_thread_area implementation.
Thanks,
Pedro Alves