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.
+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.
}
}
-/* 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)
{
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)
/* 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);