GDB testsuite: Suppress GCC's colored output
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Mon, 14 Aug 2017 18:31:09 +0000 (20:31 +0200)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Mon, 14 Aug 2017 18:31:09 +0000 (20:31 +0200)
commitbf0ec4c2769236d9c471685409605f50b01479e5
treed8c97d035b04aeea6733b793d0b80a6bd27d4793
parentd3abe1c8ef1ec9a90932b801138a144dcae95100
GDB testsuite: Suppress GCC's colored output

Newer GCC versions yield colored diagnostic messages by default, which may
be useful when executing GDB interactively from a terminal.  But when run
from a GDB test case, the compiler output is written into gdb.log, where
such escape sequences are usually more inhibiting than helpful to the
evaluation of test results.  So this patch suppresses that.

gdb/testsuite/ChangeLog:

* lib/gdb.exp (universal_compile_options): New caching proc.
(gdb_compile): Suppress GCC's coloring of messages.
gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp