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: [PATCH] Provide useful completer for "info registers"


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/


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