aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-08-09 14:57:48 +0100
committerNick Clifton <nickc@redhat.com>2022-08-09 14:57:48 +0100
commita88c79b77036e4778e70d62081c3cfd1044bb8e3 (patch)
tree3897a05c5d447fd3d44babc8312e0c8ad7dac417 /binutils/testsuite
parent80d362484999634e11d2b9f9e6d69e2cd4fdba12 (diff)
downloadgdb-a88c79b77036e4778e70d62081c3cfd1044bb8e3.zip
gdb-a88c79b77036e4778e70d62081c3cfd1044bb8e3.tar.gz
gdb-a88c79b77036e4778e70d62081c3cfd1044bb8e3.tar.bz2
Default to enabling colored disassembly if output is to a terminal.
PR 29457 * objdump.c (disassembler_color): Change type to an enum. (disassembler_extended_color): Remove. (usage): Update. (objdump_color_for_assembler_style): Update. (main): Update initialisation of disassembler_color. If not initialised via a command line option, set based upon terminal output. * doc/binutils.texi: Update description of disassmbler-color option. * testsuite/binutils-all/arc/objdump.exp: Add --disassembler-color=off option when disassembling. * testsuite/binutils-all/arm/objdump.exp: Likewise.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r--binutils/testsuite/binutils-all/arc/objdump.exp2
-rw-r--r--binutils/testsuite/binutils-all/arm/objdump.exp2
2 files changed, 2 insertions, 2 deletions
diff --git a/binutils/testsuite/binutils-all/arc/objdump.exp b/binutils/testsuite/binutils-all/arc/objdump.exp
index fe69855..6ade013 100644
--- a/binutils/testsuite/binutils-all/arc/objdump.exp
+++ b/binutils/testsuite/binutils-all/arc/objdump.exp
@@ -56,7 +56,7 @@ proc check_assembly { testname objfile expected { disas_flags "" } } {
fail $testname
return
}
- set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS --disassemble $disas_flags \
+ set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS --disassemble --disassembler-color=off $disas_flags \
$objfile"]
if [regexp $expected $got] then {
diff --git a/binutils/testsuite/binutils-all/arm/objdump.exp b/binutils/testsuite/binutils-all/arm/objdump.exp
index 059ef1e..9cd057e 100644
--- a/binutils/testsuite/binutils-all/arm/objdump.exp
+++ b/binutils/testsuite/binutils-all/arm/objdump.exp
@@ -41,7 +41,7 @@ if {![binutils_assemble $srcdir/$subdir/thumb2-cond.s tmpdir/thumb2-cond.o]} the
# Make sure that conditional instructions are correctly decoded.
- set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS --disassemble --start-address=6 $objfile"]
+ set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS --disassemble --disassembler-color=off --start-address=6 $objfile"]
set want "bcc.w\[ \t\]*e12.*bx\[ \t\]*lr"