gdb/
authorVladimir Prus <vladimir@codesourcery.com>
Tue, 14 Aug 2007 11:09:45 +0000 (11:09 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Tue, 14 Aug 2007 11:09:45 +0000 (11:09 +0000)
* breakpoint.c (disable_breakpoints_in_shlibs): Remove
the 'silent' parameter and code to implement that.
* breakpoint.h (disable_breakpoints_in_shlibs): Adjust
prototype.
* win32-nat.c: Adjust.
* solib.c: Adjust.

gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h
gdb/solib.c
gdb/win32-nat.c
gdb/windows-nat.c

index 9f58c40ec8d42f19154c9a75ded514ccc03fdf5e..da35d38eff31a6b1a75a30adae7e859a0f4f9c81 100644 (file)
@@ -1,3 +1,13 @@
+2007-08-14  Vladimir Prus  <vladimir@codesourcery.com>
+
+       gdb/
+       * breakpoint.c (disable_breakpoints_in_shlibs): Remove
+       the 'silent' parameter and code to implement that.
+       * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
+       prototype.
+       * win32-nat.c: Adjust.
+       * solib.c: Adjust.
+       
 2007-08-14  Vladimir Prus  <vladimir@codesourcery.com>
 
        gdb/
index 1fc3d104956e076ba9f18c116f1f759073d579e6..f798710dfb83e3c723d40c8bda0eac9ab8ef16ce 100644 (file)
@@ -4448,7 +4448,7 @@ create_solib_event_breakpoint (CORE_ADDR address)
    apply to enabled breakpoints, disabled ones can just stay disabled.  */
 
 void
-disable_breakpoints_in_shlibs (int silent)
+disable_breakpoints_in_shlibs (void)
 {
   struct breakpoint *b;
   int disabled_shlib_breaks = 0;
@@ -4463,19 +4463,7 @@ disable_breakpoints_in_shlibs (int silent)
        && solib_address (b->loc->address)
 #endif
        )
-      {
        b->enable_state = bp_shlib_disabled;
-       if (!silent)
-         {
-           if (!disabled_shlib_breaks)
-             {
-               target_terminal_ours_for_output ();
-               warning (_("Temporarily disabling shared library breakpoints:"));
-             }
-           disabled_shlib_breaks = 1;
-           warning (_("breakpoint #%d "), b->number);
-         }
-      }
   }
 }
 
index 1573ac8edd5a2547b378e908675270056f520205..b7996a5b3725ce870e399f60c8f66f9728688ff6 100644 (file)
@@ -791,7 +791,7 @@ extern void remove_solib_event_breakpoints (void);
 
 extern void remove_thread_event_breakpoints (void);
 
-extern void disable_breakpoints_in_shlibs (int silent);
+extern void disable_breakpoints_in_shlibs (void);
 
 extern void re_enable_breakpoints_in_shlibs (void);
 
index bd4cf5175517cd9203ff7a6195cf1497ee6ec019..7e2f75891e108413188a0884c943ebb454e5db88 100644 (file)
@@ -854,7 +854,7 @@ clear_solib (void)
      So: disable breakpoints only if we're using ELF shared libs.  */
   if (exec_bfd != NULL
       && bfd_get_flavour (exec_bfd) != bfd_target_aout_flavour)
-    disable_breakpoints_in_shlibs (1);
+    disable_breakpoints_in_shlibs ();
 
   while (so_list_head)
     {
index d312d17bc69fa1f35d0cad68286fdfd7d2c6bbf3..91ee9cdc5e76b06ac169709e04bc0d9950e56fae 100644 (file)
@@ -1585,7 +1585,7 @@ do_initial_win32_stuff (DWORD pid)
   current_event.dwProcessId = pid;
   memset (&current_event, 0, sizeof (current_event));
   push_target (&win32_ops);
-  disable_breakpoints_in_shlibs (1);
+  disable_breakpoints_in_shlibs ();
   win32_clear_solib ();
   clear_proceed_status ();
   init_wait_for_inferior ();
index d312d17bc69fa1f35d0cad68286fdfd7d2c6bbf3..91ee9cdc5e76b06ac169709e04bc0d9950e56fae 100644 (file)
@@ -1585,7 +1585,7 @@ do_initial_win32_stuff (DWORD pid)
   current_event.dwProcessId = pid;
   memset (&current_event, 0, sizeof (current_event));
   push_target (&win32_ops);
-  disable_breakpoints_in_shlibs (1);
+  disable_breakpoints_in_shlibs ();
   win32_clear_solib ();
   clear_proceed_status ();
   init_wait_for_inferior ();