This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] xtensa: implement NPTL helpers


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]