binutils-gdb/gdb/doc
Andrew Burgess 0642912e83 gdb/python: allow Value.format_string to return styled output
Add a new argument to the gdb.Value.format_string method, 'styling'.
This argument is False by default.

When this argument is True, then the returned string can contain output
styling escape sequences.

When this argument is False, then the returned string will not contain
any styling escape sequences.

If the returned string is going to be printed to the user, then it is
often nice to retain the GDB styling.

For the testing, we need to adjust the TERM environment variable, as
we do for all the styling tests.  I'm now running all of the C tests
in gdb.python/py-format-string.exp in an environment where styling
could be generated, but only my new test should actually produce
styled output, hopefully this will catch the case where a bug might
cause format_string to always produce styled output.
2022-02-07 16:52:47 +00:00
..
.gitignore
a4rc.sed
agentexpr.texi Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
all-cfg.texi Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
annotate.texinfo Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
ChangeLog-1991-2021 gdb: move remaining ChangeLogs to legacy files 2021-07-26 12:20:33 +01:00
doxy-index.in Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
Doxyfile-base.in Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
Doxyfile-gdb-api.in Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
Doxyfile-gdb-xref.in Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
Doxyfile-gdbserver.in Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
fdl.texi
filter-for-doxygen
filter-params.pl
gdb.texinfo gdb: add the 'set/show suppress-cli-notifications' command 2022-02-07 08:26:56 +01:00
gpl.texi
guile.texi gdb/doc: shorten some source lines, and prevent some line breaks 2022-01-07 14:42:35 +00:00
lpsrc.sed
Makefile.in Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
psrc.sed
python.texi gdb/python: allow Value.format_string to return styled output 2022-02-07 16:52:47 +00:00
refcard.tex Manual copyright year update of various GDB files 2022-01-01 19:13:23 +04:00
stabs.texinfo Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
stack_frame.eps
stack_frame.pdf
stack_frame.png
stack_frame.svg
stack_frame.txt