* 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 c0ec976..ff652fa 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 8ac9818..83632d0 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