This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Provide useful completer for "info registers"
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: Andreas Arnez <arnez at linux dot vnet dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 26 Nov 2014 16:52:52 -0500
- Subject: Re: [PATCH] Provide useful completer for "info registers"
- Authentication-results: sourceware.org; auth=none
- References: <87h9xnqje8 dot fsf at br87z6lw dot de dot ibm dot com> <87ioi1bs3x dot fsf at redhat dot com>
On Wednesday, November 26 2014, I wrote:
[...]
> + for (group = reggroup_next (gdbarch, NULL);
> + group != NULL;
> + group = reggroup_next (gdbarch, group))
> + regnames[count++] = reggroup_name (group);
>
> + regnames[count] = NULL;
> +
> + result = complete_on_enum (regnames, text, word);
Ops, sorry, this should be:
result = complete_on_enum (regnames, word, word);
complete_on_enum has such a weird interface that it makes me want to
cry...
Cheers,
--
Sergio
GPG key ID: 0x65FC5E36
Please send encrypted e-mail if possible
http://sergiodj.net/