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:51:11 +0000 (05:51 -0600)
commitcf2a5276288ce16242a35594db9f61fa9e8f5120
tree7195a563d1318a36768e14cb21857d6474358663
parent3768f5bdec2ed46e7c3c07c863cebd99a5efe645
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.

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