* linux-thread-db.c (check_for_thread_db): Don't attempt to use
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 20 Oct 2006 01:08:14 +0000 (01:08 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 20 Oct 2006 01:08:14 +0000 (01:08 +0000)
thread_db for remote targets.
* remote.c (remote_new_objfile): Always call predecessor on
new_objfile event chain.

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

index 1c11ec268f9a9e2007b748a3442cbae5213935bd..51e0ba99f8f2fcda30e8782ac17f41f3ecd97b37 100644 (file)
@@ -1,3 +1,10 @@
+2006-10-19  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * linux-thread-db.c (check_for_thread_db): Don't attempt to use
+       thread_db for remote targets.
+       * remote.c (remote_new_objfile): Always call predecessor on
+       new_objfile event chain.
+
 2006-10-19  Joel Brobecker  <brobecker@adacore.com>
 
        * solib.c (libpthread_solib_p): New function.
index c861208575483e0ecf33338ade43dd0f5ec3d3ec..a6d05f072ba59609b7827b8dca18e966bcce3609 100644 (file)
@@ -599,6 +599,10 @@ check_for_thread_db (void)
   if (!target_has_execution)
     return;
 
+  /* Don't attempt to use thread_db for remote targets.  */
+  if (!target_can_run (&current_target))
+    return;
+
   /* Initialize the structure that identifies the child process.  */
   proc_handle.pid = GET_PID (inferior_ptid);
 
index 98fe59d6331f804bdb203d5091181157bd20dbcf..66859719a0dbdb534d9dda2be77652ad4590dff0 100644 (file)
@@ -6126,8 +6126,7 @@ remote_new_objfile (struct objfile *objfile)
       remote_check_symbols (objfile);
     }
   /* Call predecessor on chain, if any.  */
-  if (remote_new_objfile_chain != 0 &&
-      remote_desc == 0)
+  if (remote_new_objfile_chain)
     remote_new_objfile_chain (objfile);
 }