[PATCH] xtensa: implement NPTL helpers
Pedro Alves
palves@redhat.com
Thu Aug 20 17:50:00 GMT 2015
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
More information about the Gdb-patches
mailing list