aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
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/doc
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/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo10
2 files changed, 15 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 81512fa..1b7dabf 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2019-03-14 Tom Tromey <tromey@adacore.com>
+
+ * gdb.texinfo (Output Styling): Document "set style source" and
+ "show style source".
+
2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
* gdb.texinfo (Mode Options): Mention mi3.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 20f6122..431752b 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -24525,6 +24525,16 @@ most hosts defaulting to @samp{on}.
@item show style enabled
Show the current state of styling.
+
+@item set style sources @samp{on|off}
+Enable or disable source code styling. This affects whether source
+code, such as the output of the @code{list} command, is styled. Note
+that source styling only works if styling in general is enabled, and
+if @value{GDBN} was linked with the GNU Source Highlight library. The
+default is @samp{on}.
+
+@item show style sources
+Show the current state of source code styling.
@end table
Subcommands of @code{set style} control specific forms of styling.