This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 00/16] Add styling to the gdb CLI and TUI
> From: Tom Tromey <tom@tromey.com>
> Cc: Tom Tromey <tom@tromey.com>, gdb-patches@sourceware.org
> Date: Mon, 04 Mar 2019 08:08:47 -0700
>
> Eli> + if (fg.is_none ())
> Eli> + fgcolor = norm_attr & 15;
> Eli> + else
> Eli> + fgcolor = fg_color[fg.get_value () & 15];
>
> get_value is only defined for basic colors; you'll get an assertion here
> if the color is not basic. For non-basic colors, you can get the rgb
> values for the color instead via the get_rgb method.
I've seen the assertion in the code, but it wasn't clear to me when/if
I could get non-basic colors on MS-Windows. Could you describe a
situation where that could happen?
Thanks.