Save plain text in the source cache
authorTom Tromey <tromey@adacore.com>
Mon, 22 Jul 2019 18:41:23 +0000 (12:41 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 6 Aug 2019 14:04:33 +0000 (08:04 -0600)
commit872dceaaff9b54764b8f510b549497b9d904b136
tree7f0c706a0aee1f8b7961c78132f7174239dbf0c1
parent269249d9406096dd59aecd8845e960fdddb1ebfe
Save plain text in the source cache

Currently the source cache will only store highlighted text.  However,
there's no reason it could not also store plain text, when styling is
turned off.

This patch makes this change.  This also simplifies the source cache
code somewhat.

gdb/ChangeLog
2019-08-06  Tom Tromey  <tromey@adacore.com>

* source-cache.c (source_cache::get_plain_source_lines):
Remove "first_line" and "last_line" parameters.
(source_cache::get_source_lines): Cache plain text.
* source-cache.h (class source_cache)
<get_plain_source_lines>: Update.
gdb/ChangeLog
gdb/source-cache.c
gdb/source-cache.h
This page took 0.035147 seconds and 4 git commands to generate.