aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-style.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2025-02-17 10:51:10 +0000
committerAndrew Burgess <aburgess@redhat.com>2025-02-24 16:44:46 +0000
commit4fd9516e3300249a9fe90d5c7ba6b63ba3058857 (patch)
tree17a70ece8ede050b0ba9821a29e15a98e3457d39 /gdb/cli/cli-style.c
parent7915b1753260fb7c62d55d3f2ab00e1e370a5389 (diff)
downloadbinutils-4fd9516e3300249a9fe90d5c7ba6b63ba3058857.zip
binutils-4fd9516e3300249a9fe90d5c7ba6b63ba3058857.tar.gz
binutils-4fd9516e3300249a9fe90d5c7ba6b63ba3058857.tar.bz2
gdb/doc: fix help text for 'set style disassembler enabled'
The help text for 'set/show style disassembler enable' was output of date. It talks about GDB requiring the Python Pygments library, but for many common architectures this is no longer the case, libopcode is used for styling. The Python Pygments library is still used as a fallback for those architectures that libopcode doesn't currently style. I've updated the help text to try and explain all this. The manual was already updated. Approved-By: Eli Zaretskii <eliz@gnu.org>
Diffstat (limited to 'gdb/cli/cli-style.c')
-rw-r--r--gdb/cli/cli-style.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/gdb/cli/cli-style.c b/gdb/cli/cli-style.c
index 4151082..2e6a43f 100644
--- a/gdb/cli/cli-style.c
+++ b/gdb/cli/cli-style.c
@@ -371,9 +371,17 @@ Configure various disassembler style-related variables."),
add_setshow_boolean_cmd ("enabled", no_class, &disassembler_styling, _("\
Set whether disassembler output styling is enabled."), _("\
Show whether disassembler output styling is enabled."), _("\
-If enabled, disassembler output is styled. Disassembler highlighting\n\
-requires the Python Pygments library, if this library is not available\n\
-then disassembler highlighting will not be possible."
+If enabled, disassembler output is styled.\n\
+\n\
+Disassembler styling requires a library that is able to style the current\n\
+instruction architecture. By default, GDB will use its builtin library\n\
+for disassembler styling, but this cannot style every architecture.\n\
+\n\
+For architectures that cannot be styled by the builtin disassembler library\n\
+GDB will use the Python Pygments library, if this library is available.\n\
+\n\
+If neither option is able to style the current architecture, then\n\
+disassembler output will be unstyled, even when this option is enabled."
), set_style_enabled, show_style_disassembler,
&style_disasm_set_list, &style_disasm_show_list);