aboutsummaryrefslogtreecommitdiff
path: root/gdb/NEWS
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-03-08 13:54:07 -0700
committerTom Tromey <tromey@adacore.com>2019-03-14 05:47:11 -0600
commitd085f98901ccd6c9764b93d3983f3c7797addc4f (patch)
treebdd1be3d6e40f4b72782ae0db0da3fc80dfe93c2 /gdb/NEWS
parent6f11e6824e15bd40fe1e7b245a22865c6ef8c7bd (diff)
downloadgdb-d085f98901ccd6c9764b93d3983f3c7797addc4f.zip
gdb-d085f98901ccd6c9764b93d3983f3c7797addc4f.tar.gz
gdb-d085f98901ccd6c9764b93d3983f3c7797addc4f.tar.bz2
Add the "set style source" command
This adds "set style source" (and "show style source") commands. This gives the user control over whether source code is highlighted. gdb/ChangeLog 2019-03-14 Tom Tromey <tromey@adacore.com> * NEWS: Add item for "style sources" commands. * source-cache.c (source_cache::get_source_lines): Check source_styling. * cli/cli-style.c (source_styling): New global. (_initialize_cli_style): Add "style sources" commands. (show_style_sources): New function. * cli/cli-style.h (source_styling): Declare. gdb/doc/ChangeLog 2019-03-14 Tom Tromey <tromey@adacore.com> * gdb.texinfo (Output Styling): Document "set style source" and "show style source". gdb/testsuite/ChangeLog 2019-03-14 Tom Tromey <tromey@adacore.com> * gdb.base/style.exp: Add "set style sources" test.
Diffstat (limited to 'gdb/NEWS')
-rw-r--r--gdb/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/NEWS b/gdb/NEWS
index 53d1c6e..c45b313 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -140,6 +140,12 @@ show style enabled
Enable or disable terminal styling. Styling is enabled by default
on most hosts, but disabled by default when in batch mode.
+set style sources [on|off]
+show style sources
+ Enable or disable source code styling. Source code styling is
+ enabled by default, but only takes effect if styling in general is
+ enabled, and if GDB was linked with GNU Source Highlight.
+
set style filename foreground COLOR
set style filename background COLOR
set style filename intensity VALUE