Re: FYI: fix PR gdb/8869

Pedro Alves
2009-08-08T13:43:57Z

On Saturday 08 August 2009 00:28:00, Tom Tromey wrote:
> >>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
>
> Tom> Sigh.
> Tom> I'll fix soon.
>
> Ok, here is an update to strip trailing whitespace. This time with some
> tests.

Thanks!

> This is kind of ugly.

Indeed. :-)

> I did remember a problem with using a real enum for set language -- the
> languages aren't all registered when _initialize_language is called.

I think it would work to (re-)register the command in add_language
instead, whenever a new language is added.

--
Pedro Alves