[gdb/cli] Keep track of styling failures in source_cache
commitdcbdb080edf53aa1bed4c84e99fe50e0573d239a
authorTom de Vries <tdevries@suse.de>
Tue, 17 Oct 2023 09:38:06 +0000 (17 11:38 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 17 Oct 2023 09:38:06 +0000 (17 11:38 +0200)
tree937bfbf76c3ae9fb1517dd0d9856ba2ce6a5238f
parent62dfd02e30e33be7b6acab5e2e50677d60b8ff8c
[gdb/cli] Keep track of styling failures in source_cache

In source_cache::ensure, keep track of which files failed to be styled, and
don't attempt to style them again in case the file dropped out of the cache.

Tested on x86_64-linux.

Reviewed-By: Lancelot Six <lancelot.six@amd.com>
gdb/source-cache.c
gdb/source-cache.h