This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] disassemble-next-line
> --- 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