mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
objdump: Add configure time option to enable colored disassembly output by default.
PR 29457 * configure.ac: Add --enable-colored-disassembly. * objdump.c: Add --disassembler-color=terminal. * doc/binutils.texi (objdump): Document the new option. * NEWS: Mention new feature. * config.in: Regenerate in. * configure: Regenerate.
This commit is contained in:
30
binutils/configure
vendored
30
binutils/configure
vendored
@@ -827,6 +827,7 @@ enable_deterministic_archives
|
||||
enable_default_strings_all
|
||||
enable_f_for_ifunc_symbols
|
||||
enable_follow_debug_links
|
||||
enable_colored_disassembly
|
||||
with_debuginfod
|
||||
enable_libctf
|
||||
enable_werror
|
||||
@@ -1504,6 +1505,9 @@ Optional Features:
|
||||
--enable-follow-debug-links
|
||||
Have readelf and objdump follow debug links by
|
||||
default
|
||||
--enable-colored-disassembly
|
||||
Have objdump use colors in its disassembly by
|
||||
default
|
||||
--enable-libctf Handle .ctf type-info sections [default=yes]
|
||||
--enable-werror treat compile warnings as errors
|
||||
--enable-build-warnings enable build-time compiler warnings
|
||||
@@ -10813,7 +10817,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 10816 "configure"
|
||||
#line 10820 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@@ -10919,7 +10923,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 10922 "configure"
|
||||
#line 10926 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@@ -11633,6 +11637,28 @@ _ACEOF
|
||||
|
||||
|
||||
|
||||
# Check whether --enable-colored-disassembly was given.
|
||||
if test "${enable_colored_disassembly+set}" = set; then :
|
||||
enableval=$enable_colored_disassembly;
|
||||
if test "${enableval}" = no; then
|
||||
default_for_colored_disassembly=0
|
||||
else
|
||||
default_for_colored_disassembly=1
|
||||
fi
|
||||
else
|
||||
default_for_colored_disassembly=0
|
||||
fi
|
||||
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define DEFAULT_FOR_COLORED_DISASSEMBLY $default_for_colored_disassembly
|
||||
_ACEOF
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user