This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: FYI: fix PR gdb/8869
> From: Pedro Alves <pedro@codesourcery.com>
> Date: Thu, 13 Aug 2009 16:03:03 +0100
>
> (gdb) set language
> Requires an argument. Valid arguments are unknown, local, auto, ada, c, c++, asm, minimal, fortran, objective-c, java, modula-2, pascal, scheme.
>
> vs.
>
> (gdb) set language
> Requires an argument. Valid arguments are auto, local, unknown, ada, c, c++, asm, minimal, fortran, objective-c, java, modula-2, pascal, scheme.
>
> "Valid arguments are unknown" strikes me as odd.
You could say
Valid arguments are: unknown, local, auto, ...
It is also more grammatically correct, I believe.
> I guess we can also claim that it is weird that
> "set language" doesn't show an alphabetically sorted list, while
> "set language<TAB>" does. Anyone bothered enough to go address that?
I indeed think the list should be alphabetized. As the list grows,
having any other order will make it easier to miss some language you
are looking for.