aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.ada/length_cond
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-06-18 12:18:24 -0600
committerTom Tromey <tromey@adacore.com>2019-06-19 05:34:51 -0600
commitdcf3792354ddcd6e10e59e32060e34b27246e7da (patch)
tree4f448b277584ac9c09a49cfd242dffcf2e39ae65 /gdb/testsuite/gdb.ada/length_cond
parent6f5601c4d0ad43254244f1b624900cdd5afd02ba (diff)
downloadgdb-dcf3792354ddcd6e10e59e32060e34b27246e7da.zip
gdb-dcf3792354ddcd6e10e59e32060e34b27246e7da.tar.gz
gdb-dcf3792354ddcd6e10e59e32060e34b27246e7da.tar.bz2
Instantiate a single source highlighter
It occurred to me that there's no reason to make a new source highlighter each time gdb needs to highlight some source code. Instead, a single one can be created and then simply reused each time. This patch implements this idea. Tested on x86-64 Fedora 29. gdb/ChangeLog 2019-06-19 Tom Tromey <tromey@adacore.com> * source-cache.c (highlighter): New global. (source_cache::get_source_lines): Create a highlighter on demand.
Diffstat (limited to 'gdb/testsuite/gdb.ada/length_cond')
0 files changed, 0 insertions, 0 deletions