* linux-thread-db.c (check_for_thread_db): Return early if we have
authorDaniel Jacobowitz <drow@false.org>
Mon, 5 Feb 2007 20:02:51 +0000 (20:02 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 5 Feb 2007 20:02:51 +0000 (20:02 +0000)
no libthread_db support.

gdb/ChangeLog
gdb/linux-thread-db.c

index 6b8d590f0cb8f35e8520ede5dc4b076c807f7062..781377e9d79996f8b0455d54ea3337c088255649 100644 (file)
@@ -1,3 +1,8 @@
+2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * linux-thread-db.c (check_for_thread_db): Return early if we have
+       no libthread_db support.
+
 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * mi/mi-parse.h: Include <sys/time.h>.
index 3a18c9e0a756d58532d61b6e7624e56ea2437ece..7e5e4eb4fd327dc53c5b63eec0404a32b84c4d57 100644 (file)
@@ -581,6 +581,10 @@ check_for_thread_db (void)
   td_err_e err;
   static int already_loaded;
 
+  /* Do nothing if we couldn't load libthread_db.so.1.  */
+  if (td_ta_new_p == NULL)
+    return;
+
   /* First time through, report that libthread_db was successfuly
      loaded.  Can't print this in in thread_db_load as, at that stage,
      the interpreter and it's console haven't started.  */