* solib-svr4.c (enable_break): Simplify return value.
authorDaniel Jacobowitz <drow@false.org>
Tue, 10 Apr 2007 11:51:17 +0000 (11:51 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 10 Apr 2007 11:51:17 +0000 (11:51 +0000)
(svr4_solib_create_inferior_hook): Do not warn if enable_break fails.

gdb/ChangeLog
gdb/solib-svr4.c

index 9799f3fb534e7d4c4fcae4b341a814e69bffe3f8..ece22bb5a7875a5a13a3fcb96cd1251c0ac30402 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * solib-svr4.c (enable_break): Simplify return value.
+       (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
+
 2007-04-10  Andreas Schwab  <schwab@suse.de>
 
        * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
index 2d3cae0f5ef4aa9a586dec336b6280c80d57a703..54a27b3b656ea1f3ef6aab251182d2dc649d24ab 100644 (file)
@@ -959,8 +959,6 @@ exec_entry_point (struct bfd *abfd, struct target_ops *targ)
 static int
 enable_break (void)
 {
-  int success = 0;
-
 #ifdef BKPT_AT_SYMBOL
 
   struct minimal_symbol *msymbol;
@@ -1126,13 +1124,9 @@ enable_break (void)
          return 1;
        }
     }
-
-  /* Nothing good happened.  */
-  success = 0;
-
 #endif /* BKPT_AT_SYMBOL */
 
-  return (success);
+  return 0;
 }
 
 /*
@@ -1337,10 +1331,7 @@ svr4_solib_create_inferior_hook (void)
     }
 
   if (!enable_break ())
-    {
-      warning (_("shared library handler failed to enable breakpoint"));
-      return;
-    }
+    return;
 
 #if defined(_SCO_DS)
   /* SCO needs the loop below, other systems should be using the