[PATCH] Make format_pieces recognize the \e escape sequence
Tom Tromey
tom@tromey.com
Thu May 17 17:08:00 GMT 2018
>>>>> "Simon" == Simon Marchi <simon.marchi@ericsson.com> writes:
Simon> I noticed that the printf command did not recognize the \e escape
Simon> sequence, used amongst other things to use colors:
Simon> (gdb) printf "This is \e[32mgreen\e[m!\n"
Simon> Unrecognized escape character \e in format string.
Simon> This patch makes format_pieces recognize it, which makes that command
Simon> print the expected result in glorious color.
Thanks. The patch looked reasonable to me.
Maybe this could be considered part of PR 14975.
Tom
More information about the Gdb-patches
mailing list