Re: [PATCH 3/6] Modify internalvar mechanism

Jan Kratochvil
2011-04-11T21:08:41Z

On Mon, 04 Apr 2011 05:08:34 +0200, Sergio Durigan Junior wrote:
> --- a/gdb/thread.c
> +++ b/gdb/thread.c
> @@ -1449,6 +1450,15 @@ thread_id_make_value (struct gdbarch *gdbarch, struct internalvar *var)
> /* Commands with a prefix of `thread'. */
> struct cmd_list_element *thread_cmd_list = NULL;
>
> +/* Implementation of `thread' variable. */
> +
> +static struct internalvar_funcs thread_funcs =
^^^ const

> +{
> + thread_id_make_value,
> + NULL,
> + NULL
> +};

Thanks,
Jan