Re: [RFC] disassemble-next-line

Pedro Alves
2009-03-13T00:30:47Z

> --- a/stack.c
> +++ b/stack.c
>
> +/* Enum strings for "set|show disassemble-next-line". */
> +
> +static const char disassemble_next_line_auto[] = "auto";
> +static const char disassemble_next_line_on[] = "on";
> +static const char disassemble_next_line_off[] = "off";
> +static const char *disassemble_next_line_enum[] =
> +{
> + disassemble_next_line_auto,
> + disassemble_next_line_on,
> + disassemble_next_line_off,
> + NULL,
> +};

Please make this an `enum auto_boolean' / AUTO_BOOLEAN_AUTO, and
register the "disassemble-next-line" command with
add_setshow_auto_boolean_cmd instead.

--
Pedro Alves