]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/NEWS
gdb: add 'maint set/show gnu-source-highlight enabled' command
authorAndrew Burgess <aburgess@redhat.com>
Fri, 26 Nov 2021 15:13:43 +0000 (15:13 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Wed, 12 Jan 2022 11:33:31 +0000 (11:33 +0000)
commit643b126809e945e02420d78fd1ef0e3cef195cc3
tree00a6d9fb85f8d652ce0f6c04bcce2601a4dbe3ca
parent0e42221ac2cea234fe7a35797475f55f3d304b92
gdb: add 'maint set/show gnu-source-highlight enabled' command

In a later commit I want to address an issue with the Python pygments
based code styling solution.  As this approach is only used when the
GNU Source Highlight library is not available, testing bugs in this
area can be annoying, as it requires GDB to be rebuilt with use of GNU
Source Highlight disabled.

This commit adds a pair of new maintenance commands:

  maintenance set gnu-source-highlight enabled on|off
  maintenance show gnu-source-highlight enabled

these commands can be used to disable use of the GNU Source Highlight
library, allowing me, in a later commit, to easily test bugs that
would otherwise be masked by GNU Source Highlight being used.

I made this a maintenance command, rather than a general purpose
command, as it didn't seem like this was something a general user
would need to adjust.  We can always convert the maintenance command
to a general command later if needed.

There's no test for this here, but this feature will be used in a
later commit.
gdb/NEWS
gdb/doc/gdb.texinfo
gdb/source-cache.c