This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 3/6] Modify internalvar mechanism
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Sergio Durigan Junior <sergiodj at redhat dot com>
- Cc: gdb-patches at sourceware dot org, Tom Tromey <tromey at redhat dot com>
- Date: Mon, 11 Apr 2011 23:08:34 +0200
- Subject: Re: [PATCH 3/6] Modify internalvar mechanism
- References: <m3lizqpvbh.fsf@redhat.com>
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