public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug threads/11795] New: Support __thread variables without libpthread
@ 2010-07-07 17:36 jan dot kratochvil at redhat dot com
  2010-07-07 17:37 ` [Bug threads/11795] " jan dot kratochvil at redhat dot com
  2010-07-07 17:38 ` jan dot kratochvil at redhat dot com
  0 siblings, 2 replies; 10+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-07-07 17:36 UTC (permalink / raw)
  To: gdb-prs

echo 'main(){}'|gcc -g -x c -;./gdb -nx -ex start -ex 'p errno' ./a.out 
Cannot find thread-local variables on this target

It happens for any variable marked by __thread when -lpthread is not used.
Fedora GDB has some hacks such as using `*__errno_location()' instead of `errno'.

The proper way would be glibc extension to support __thread variables even
without -lpthread mode as they are used not just for `errno'.
Draft patches included.

-- 
           Summary: Support __thread variables without libpthread
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: threads
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: jan dot kratochvil at redhat dot com
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=11795

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <bug-11795-4717@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2014-05-28 19:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-07 17:36 [Bug threads/11795] New: Support __thread variables without libpthread jan dot kratochvil at redhat dot com
2010-07-07 17:37 ` [Bug threads/11795] " jan dot kratochvil at redhat dot com
2010-07-07 17:38 ` jan dot kratochvil at redhat dot com
     [not found] <bug-11795-4717@http.sourceware.org/bugzilla/>
2012-07-14 20:59 ` jan.kratochvil at redhat dot com
2012-07-14 21:00 ` jan.kratochvil at redhat dot com
2012-07-15 18:30 ` jan.kratochvil at redhat dot com
2012-07-31 11:04 ` orgads at gmail dot com
2013-07-26 21:39 ` dmalcolm at redhat dot com
2014-02-16 16:59 ` jackie.rosen at hushmail dot com
2014-05-28 19:41 ` schwab at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).