summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-04-20 11:00:29 +0000
committerAndrew Cagney <cagney@redhat.com>2000-04-20 11:00:29 +0000
commit3e4a74d32943b0c7ddd208249204835410d35fa4 (patch)
tree000770d8baa0662c36adb07c7636cd3d4a56e4d7
parenta6cbc3a4980ac8e35b0b2fc2262c85fddcd53297 (diff)
downloadgdb-3e4a74d32943b0c7ddd208249204835410d35fa4.tar.gz
Append NULL to enum based commands follow-fork and scheduler-locking.
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/infrun.c21
2 files changed, 21 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c407b5ba5e1..ec535565046 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+Thu Apr 20 18:54:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ From Daniel Berlin <dan@cgsoftware.com> and Tim Mooney
+ <mooney@dogbert.cc.ndsu.nodak.edu>:
+ * infrun.c (follow_fork_mode_kind_names): NULL terminate
+ array. Re-indent.
+ (scheduler_enums): Ditto.
+
2000-04-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* xcoffsolib.c (solib_add): Fix call to vmap_symtab().
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 280f01e4eb5..8bf3012a667 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)