* linux-thread-db.c (have_threads_callback): Check thread->private.
authorDaniel Jacobowitz <drow@false.org>
Mon, 14 Apr 2008 14:02:23 +0000 (14:02 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 14 Apr 2008 14:02:23 +0000 (14:02 +0000)
gdb/ChangeLog
gdb/linux-thread-db.c

index c0ec976149ded5df859b5ab754044b98b4de4802..ff652faf20d0a642ecfd95937a63d1f64b27d217 100644 (file)
@@ -1,3 +1,7 @@
+2008-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * linux-thread-db.c (have_threads_callback): Check thread->private.
+
 2008-04-13  Nick Roberts  <nickrob@snap.net.nz>
            Vladimir Prus  <vladimir@codesourcery.com>
 
index 8ac98187765ab544c00473bda731fc49ca391784..83632d060c543e147dcba236335a02aa633e84b6 100644 (file)
@@ -235,7 +235,7 @@ thread_db_err_str (td_err_e err)
 static int
 have_threads_callback (struct thread_info *thread, void *dummy)
 {
-  return 1;
+  return thread->private != NULL;
 }
 
 static int