Append NULL to enum based commands follow-fork and scheduler-locking.
This commit is contained in:
parent
1319985e96
commit
ef346e0411
|
@ -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.
|
||||||
|
|
||||||
Mon Apr 17 13:37:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
Mon Apr 17 13:37:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
* gdbarch.sh: Make multi-arch variable defaults, defaults for non-
|
* gdbarch.sh: Make multi-arch variable defaults, defaults for non-
|
||||||
|
|
21
gdb/infrun.c
21
gdb/infrun.c
|
@ -436,13 +436,13 @@ static int follow_vfork_when_exec;
|
||||||
|
|
||||||
static char *follow_fork_mode_kind_names[] =
|
static char *follow_fork_mode_kind_names[] =
|
||||||
{
|
{
|
||||||
/* ??rehrauer: The "both" option is broken, by what may be a 10.20
|
/* ??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
|
kernel problem. It's also not terribly useful without a GUI to
|
||||||
help the user drive two debuggers. So for now, I'm disabling
|
help the user drive two debuggers. So for now, I'm disabling the
|
||||||
the "both" option.
|
"both" option. */
|
||||||
"parent", "child", "both", "ask" };
|
/* "parent", "child", "both", "ask" */
|
||||||
*/
|
"parent", "child", "ask", NULL
|
||||||
"parent", "child", "ask"};
|
};
|
||||||
|
|
||||||
static char *follow_fork_mode_string = NULL;
|
static char *follow_fork_mode_string = NULL;
|
||||||
|
|
||||||
|
@ -762,7 +762,12 @@ static char schedlock_on[] = "on";
|
||||||
static char schedlock_step[] = "step";
|
static char schedlock_step[] = "step";
|
||||||
static char *scheduler_mode = schedlock_off;
|
static char *scheduler_mode = schedlock_off;
|
||||||
static char *scheduler_enums[] =
|
static char *scheduler_enums[] =
|
||||||
{schedlock_off, schedlock_on, schedlock_step};
|
{
|
||||||
|
schedlock_off,
|
||||||
|
schedlock_on,
|
||||||
|
schedlock_step,
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
set_schedlock_func (char *args, int from_tty, struct cmd_list_element *c)
|
set_schedlock_func (char *args, int from_tty, struct cmd_list_element *c)
|
||||||
|
|
Loading…
Reference in New Issue