2002-01-04 Daniel Jacobowitz <drow@mvista.com>
authorDaniel Jacobowitz <drow@false.org>
Sat, 5 Jan 2002 01:46:30 +0000 (01:46 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sat, 5 Jan 2002 01:46:30 +0000 (01:46 +0000)
        * thread-db.c (thread_db_new_objfile): Do not enable thread_db
        for core files.

gdb/ChangeLog
gdb/thread-db.c

index 378a00e..b8904d5 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
+
+       * thread-db.c (thread_db_new_objfile): Do not enable thread_db
+       for core files.
+
 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
 
        * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
index 9244643..a704924 100644 (file)
@@ -482,7 +482,9 @@ thread_db_new_objfile (struct objfile *objfile)
 {
   td_err_e err;
 
-  if (objfile == NULL)
+ /* Don't attempt to use thread_db on targets which can not run
+    (core files).  */
+ if (objfile == NULL || !target_has_execution)
     {
       /* All symbols have been discarded.  If the thread_db target is
          active, deactivate it now.  */