aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-05-17 05:31:00 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-05-17 05:31:00 +0000
commit070abf125e052204c4e49f0939a9e8a4539453e9 (patch)
tree9e6710441add16a9922ee1d86eefd1edcd5bca2f /gdb/infrun.c
parent6d53bf82fce9ddb0b77d75c892e98fead20c573a (diff)
downloadgdb-070abf125e052204c4e49f0939a9e8a4539453e9.zip
gdb-070abf125e052204c4e49f0939a9e8a4539453e9.tar.gz
gdb-070abf125e052204c4e49f0939a9e8a4539453e9.tar.bz2
Add reset_schedlock declaration in target.h.
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.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 96da4cb..025ba0a 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -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)
{