diff options
author | Titus von Boxberg <titus@v9g.de> | 2010-08-21 16:46:24 +0200 |
---|---|---|
committer | Titus von Boxberg <titus@v9g.de> | 2010-08-21 16:46:24 +0200 |
commit | 63967a4141a13cfa6d3fa316b518e4f6f37590d7 (patch) | |
tree | fc972f8a2d5cecfb2a8c1f8a1ba7c23ae31b1a27 /patches/glibc | |
parent | f6634c28cccb7e0c8d85134cb28a311e0499d7d8 (diff) | |
download | crosstool-ng-63967a4141a13cfa6d3fa316b518e4f6f37590d7.tar.gz crosstool-ng-63967a4141a13cfa6d3fa316b518e4f6f37590d7.tar.bz2 crosstool-ng-63967a4141a13cfa6d3fa316b518e4f6f37590d7.zip |
libc/glibc: repair debugging with gdb (glibc 2.9)
Without this patch, crosstool-ng-built glibc-2.9 prevents
debugging any exeutable with gdb.
gdb says:
[Thread debugging using libthread_db enabled]
find_new_threads_callback: cannot get thread info: generic error
See also https://bugzilla.redhat.com/show_bug.cgi?id=487212
for a discussion of the bug and the solution.
Diffstat (limited to 'patches/glibc')
-rw-r--r-- | patches/glibc/2.9/610-fix-nptl-init.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/patches/glibc/2.9/610-fix-nptl-init.patch b/patches/glibc/2.9/610-fix-nptl-init.patch new file mode 100644 index 00000000..a25d6ad6 --- /dev/null +++ b/patches/glibc/2.9/610-fix-nptl-init.patch @@ -0,0 +1,11 @@ +--- glibc-2_9.orig/nptl/init.c 2007-10-15 22:25:25.000000000 +0200 ++++ glibc-2_9/nptl/init.c 2010-08-18 10:46:06.109098646 +0200 +@@ -236,7 +236,7 @@ + + + /* This can be set by the debugger before initialization is complete. */ +-static bool __nptl_initial_report_events; ++static bool __nptl_initial_report_events __attribute_used__; + + void + __pthread_initialize_minimal_internal (void) |