Created attachment 878705 [details] reproducer +++ This bug was initially created as a clone of Bug #1080656 +++ Description of problem: When you have a statically linked binary you can't access the tls data through gdb Version-Release number of selected component (if applicable): All. This problem exists in 6.4, 6.5, rhel7, F20 and even the upstream trunk version GDB How reproducible: always everywhere Steps to Reproduce: sierra648{jdelsign}82: gcc -g -o tls tls.c -pthread -static /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open': (.text+0x764d): warning: the use of `mktemp' is dangerous, better use `mkstemp' sierra648{jdelsign}83: gdb tls GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1) ... Reading symbols from /g/g0/jdelsign/tls...done. (gdb) b 12 Breakpoint 1 at 0x400511: file tls.c, line 12. (gdb) run Starting program: /g/g0/jdelsign/tls [Thread debugging using libthread_db enabled] [New Thread 0x2aaaaacac700 (LWP 6735)] thread_local_p: & == 00002aaaaacac6c0, . == 00002aaaaacabd1c, * == 1 [Switching to Thread 0x2aaaaacac700 (LWP 6735)] Breakpoint 1, start_routine (arg=0x1) at tls.c:12 12 return arg; Actual results: (gdb) p thread_local_p Cannot find executable file `/g/g0/jdelsign/tls' in dynamic linker's load module list Expected results: It print's the variable Additional info: --- Additional comment from Ben Woodard on 2014-03-25 17:40:32 EDT ---
Rawhide: gdb-7.7-8.fc21
gdb-7.7.1-11.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/gdb-7.7.1-11.fc20
Package gdb-7.7.1-11.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing gdb-7.7.1-11.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-6252/gdb-7.7.1-11.fc20 then log in and leave karma (feedback).
gdb-7.7.1-12.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/gdb-7.7.1-12.fc20
gdb-7.7.1-13.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/gdb-7.7.1-13.fc20
gdb-7.7.1-13.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.