Add the "set style source" command
authorTom Tromey <tromey@adacore.com>
Fri, 8 Mar 2019 20:54:07 +0000 (13:54 -0700)
committerTom Tromey <tromey@adacore.com>
Thu, 14 Mar 2019 11:47:11 +0000 (05:47 -0600)
commitd085f98901ccd6c9764b93d3983f3c7797addc4f
treebdd1be3d6e40f4b72782ae0db0da3fc80dfe93c2
parent6f11e6824e15bd40fe1e7b245a22865c6ef8c7bd
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.
gdb/ChangeLog
gdb/NEWS
gdb/cli/cli-style.c
gdb/cli/cli-style.h
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/source-cache.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/style.exp