aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2022-11-01 16:45:30 +0000
committerAndrew Burgess <aburgess@redhat.com>2022-11-16 10:34:19 +0000
commit92c1d07de5f1d82421fcb78331d1e7c70a24ff23 (patch)
treec6861a7da09fcb25139470f766de4ba0fef97c50 /gdb/doc
parentfeb5926e8a85837e97c268af53db743b545957f5 (diff)
downloadfsf-binutils-gdb-92c1d07de5f1d82421fcb78331d1e7c70a24ff23.zip
fsf-binutils-gdb-92c1d07de5f1d82421fcb78331d1e7c70a24ff23.tar.gz
fsf-binutils-gdb-92c1d07de5f1d82421fcb78331d1e7c70a24ff23.tar.bz2
gdb: add "set style tui-current-position on|off", default to off
As discussed at: https://sourceware.org/pipermail/gdb-patches/2020-June/169519.html this patch disables source and assembly code highlighting for the text highlighted by the TUI's current position indicator, and adds a command to enable it back.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/gdb.texinfo17
1 files changed, 15 insertions, 2 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index ea66f4e..f5f664f 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -26602,6 +26602,15 @@ then it will be used.
@item show style sources
Show the current state of source code styling.
+@item set style tui-current-position @samp{on|off}
+Enable or disable styling of the source and assembly code highlighted
+by the TUI's current position indicator. The default is @samp{off}.
+@xref{TUI, ,@value{GDBN} Text User Interface}.
+
+@item show style tui-current-position
+Show whether the source and assembly code highlighted by the TUI's
+current position indicator is styled.
+
@anchor{style_disassembler_enabled}
@item set style disassembler enabled @samp{on|off}
Enable or disable disassembler styling. This affects whether
@@ -29163,8 +29172,12 @@ This window shows the processor registers. Registers are highlighted
when their values change.
@end table
-The source and assembly windows show the current program position
-by highlighting the current line and marking it with a @samp{>} marker.
+The source and assembly windows show the current program position by
+highlighting the current line and marking it with a @samp{>} marker.
+By default, source and assembly code styling is disabled for the
+highlighted text, but you can enable it with the @code{set style
+tui-current-position on} command. @xref{Output Styling}.
+
Breakpoints are indicated with two markers. The first marker
indicates the breakpoint type: