Add reset_schedlock declaration in target.h.
authorJoel Brobecker <brobecker@gnat.com>
Mon, 17 May 2010 05:31:00 +0000 (05:31 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Mon, 17 May 2010 05:31:00 +0000 (05:31 +0000)
This patches improves a couple of previous patches:
  - one that introduces reset_schedlock, but failed to add a declarationl;
  - one that was checked in to avoid a compilation failure due to that
    missing declaration.
It also improves the declaration itself to better conform to our coding
practices.  Same for the comments.

2010-05-17  Joel Brobecker  <brobecker@adacore.com>

        * target.h (reset_schedlock): Add declaration.
        * infrun.c (reset_schedlock): Add missing void in function profile.
        * target.c (target_mourn_inferior): Delete local declaration of
        reset_schedlock.  Style-fix in comment.

gdb/ChangeLog
gdb/infrun.c
gdb/target.c
gdb/target.h

index cb272cd887d7a913747285e9b0ce748fa3f818c0..5d35d00773b90bfa2cf4646614930b9ccb1d3b34 100644 (file)
@@ -1,3 +1,10 @@
+2010-05-17  Joel Brobecker  <brobecker@adacore.com>
+
+       * target.h (reset_schedlock): Add declaration.
+       * infrun.c (reset_schedlock): Add missing void in function profile.
+       * target.c (target_mourn_inferior): Delete local declaration of
+       reset_schedlock.  Style-fix in comment.
+
 2010-05-17  Hui Zhu  <teawater@gmail.com>
 
        * target.c (target_mourn_inferior): Extern reset_schedlock.
index 96da4cb9837f201d9090fbeef4d8fd5564765849..025ba0ae1a08773afb025f86fed92c0f35588f14 100644 (file)
@@ -1420,10 +1420,11 @@ set_schedlock_func (char *args, int from_tty, struct cmd_list_element *c)
     }
 }
 
-/* reset_schedlock -- public */
+/* If SCHEDULER_MODE is on, then set it back to off.  Warn the user
+   about the change.  */
  
 void
-reset_schedlock ()
+reset_schedlock (void)
 {
   if (scheduler_mode == schedlock_on)
     {
index cee3582ae609a0bf1202d7ea3129e5826499c6de..ebcf51cd0f3e524d0474453e551c453cff5c8532 100644 (file)
@@ -2244,9 +2244,8 @@ void
 target_mourn_inferior (void)
 {
   struct target_ops *t;
-  extern void reset_schedlock ();
 
-  /* Clear schedlock in infrun.c */
+  /* Clear schedlock in infrun.c */
   reset_schedlock ();
 
   for (t = current_target.beneath; t != NULL; t = t->beneath)
index d4bd00759b0fcdf65b2cf1b6084366139dfcc077..cd2e82bf8d07aa3afeb876308ded3c6602326e76 100644 (file)
@@ -873,6 +873,8 @@ int target_write_memory_blocks (VEC(memory_write_request_s) *requests,
 
 /* From infrun.c.  */
 
+extern void reset_schedlock (void);
+
 extern int inferior_has_forked (ptid_t pid, ptid_t *child_pid);
 
 extern int inferior_has_vforked (ptid_t pid, ptid_t *child_pid);
This page took 0.03521 seconds and 4 git commands to generate.