gdb/
[binutils-gdb.git] / gdb / target.c
index db2f174cbc3c36b42e86f336a891adfed4b1dd1d..35a29b7480a666a244fd033c22ef96cf3c8605af 100644 (file)
@@ -872,14 +872,11 @@ update_current_target (void)
 /* Push a new target type into the stack of the existing target accessors,
    possibly superseding some of the existing accessors.
 
-   Result is zero if the pushed target ended up on top of the stack,
-   nonzero if at least one target is on top of it.
-
    Rather than allow an empty stack, we always have the dummy target at
    the bottom stratum, so we can call the function vectors without
    checking them.  */
 
-int
+void
 push_target (struct target_ops *t)
 {
   struct target_ops **cur;
@@ -920,9 +917,6 @@ push_target (struct target_ops *t)
   (*cur) = t;
 
   update_current_target ();
-
-  /* Not on top?  */
-  return (t != target_stack);
 }
 
 /* Remove a target_ops vector from the stack, wherever it may be.
@@ -2245,9 +2239,6 @@ target_mourn_inferior (void)
 {
   struct target_ops *t;
 
-  /* Clear schedlock in infrun.c */
-  reset_schedlock ();
-
   for (t = current_target.beneath; t != NULL; t = t->beneath)
     {
       if (t->to_mourn_inferior != NULL)