This is the mail archive of the gdb-cvs@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]

gdb and binutils branch master updated. 5876f5032f60c45c4bd19e7ea7d0c14d0346b93e


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
       via  5876f5032f60c45c4bd19e7ea7d0c14d0346b93e (commit)
      from  0256a6ac4b25d56da14cbbe3cda9977f9c7c13eb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5876f5032f60c45c4bd19e7ea7d0c14d0346b93e

commit 5876f5032f60c45c4bd19e7ea7d0c14d0346b93e
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed May 21 16:25:53 2014 +0200

    Fix TLS access for -static -pthread
    
    I have posted:
    	TLS variables access for -static -lpthread executables
    	https://sourceware.org/ml/libc-help/2014-03/msg00024.html
    and the GDB patch below has been confirmed as OK for current glibcs.
    
    Further work should be done for newer glibcs:
    	Improve TLS variables glibc compatibility
    	https://sourceware.org/bugzilla/show_bug.cgi?id=16954
    
    Still the patch below implements the feature in a fully functional way backward
    compatible with current glibcs, it depends on the following glibc source line:
    	csu/libc-tls.c
    	main_map->l_tls_modid = 1;
    
    gdb/
    2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
    
    	Fix TLS access for -static -pthread.
    	* linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
    	(try_thread_db_load_1): Initialize it.
    	(thread_db_get_thread_local_address): Call it if LM is zero.
    	* target.c (target_translate_tls_address): Remove LM_ADDR zero check.
    	* target.h (struct target_ops) (to_get_thread_local_address): Add
    	load_module_addr comment.
    
    gdb/gdbserver/
    2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
    
    	Fix TLS access for -static -pthread.
    	* gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
    	(thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
    	(thread_db_load_search, try_thread_db_load_1): Initialize it.
    
    gdb/testsuite/
    2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
    
    	Fix TLS access for -static -pthread.
    	* gdb.threads/staticthreads.c <HAVE_TLS> (tlsvar): New.
    	<HAVE_TLS> (thread_function, main): Initialize it.
    	* gdb.threads/staticthreads.exp: Try gdb_compile_pthreads for $have_tls.
    	Add clean_restart.
    	<$have_tls != "">: Check TLSVAR.
    
    Message-ID: <20140410115204.GB16411@host2.jankratochvil.net>

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog                               |   10 +++++
 gdb/gdbserver/ChangeLog                     |    7 ++++
 gdb/gdbserver/thread-db.c                   |   38 ++++++++++++++++----
 gdb/linux-thread-db.c                       |   50 +++++++++++++++++++-------
 gdb/target.c                                |    4 --
 gdb/target.h                                |    3 +-
 gdb/testsuite/ChangeLog                     |    9 +++++
 gdb/testsuite/gdb.threads/staticthreads.c   |   12 ++++++-
 gdb/testsuite/gdb.threads/staticthreads.exp |   30 +++++++++++++---
 9 files changed, 131 insertions(+), 32 deletions(-)


hooks/post-receive
-- 
gdb and binutils


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