This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]