aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-04-20 11:00:34 +0000
committerAndrew Cagney <cagney@redhat.com>2000-04-20 11:00:34 +0000
commitef346e04115645e592e79e29373762de26c59f94 (patch)
tree4efa928958a655895d9a740bf0f77c178ce827d5 /gdb/infrun.c
parent1319985e96c6f9173507d44cd1c5b09543c347ae (diff)
downloadgdb-ef346e04115645e592e79e29373762de26c59f94.zip
gdb-ef346e04115645e592e79e29373762de26c59f94.tar.gz
gdb-ef346e04115645e592e79e29373762de26c59f94.tar.bz2
Append NULL to enum based commands follow-fork and scheduler-locking.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 280f01e..8bf3012 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -436,13 +436,13 @@ static int follow_vfork_when_exec;
static char *follow_fork_mode_kind_names[] =
{
-/* ??rehrauer: The "both" option is broken, by what may be a 10.20
- kernel problem. It's also not terribly useful without a GUI to
- help the user drive two debuggers. So for now, I'm disabling
- the "both" option.
- "parent", "child", "both", "ask" };
- */
- "parent", "child", "ask"};
+ /* ??rehrauer: The "both" option is broken, by what may be a 10.20
+ kernel problem. It's also not terribly useful without a GUI to
+ help the user drive two debuggers. So for now, I'm disabling the
+ "both" option. */
+ /* "parent", "child", "both", "ask" */
+ "parent", "child", "ask", NULL
+};
static char *follow_fork_mode_string = NULL;
@@ -762,7 +762,12 @@ static char schedlock_on[] = "on";
static char schedlock_step[] = "step";
static char *scheduler_mode = schedlock_off;
static char *scheduler_enums[] =
-{schedlock_off, schedlock_on, schedlock_step};
+{
+ schedlock_off,
+ schedlock_on,
+ schedlock_step,
+ NULL
+};
static void
set_schedlock_func (char *args, int from_tty, struct cmd_list_element *c)