Cache the result of find_file_and_directory
authorTom Tromey <tom@tromey.com>
Mon, 29 Nov 2021 18:34:17 +0000 (11:34 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 4 Dec 2021 18:16:22 +0000 (11:16 -0700)
commit63538d8e16bca32e8d03c3d1309c5ed8894a59b4
tree4606fa4a9c376cc5351c241dd522e19306986ed2
parentbb3f8ae2902a9878a25fad21efd23fe0f888c232
Cache the result of find_file_and_directory

This changes the DWARF reader to cache the result of
find_file_and_directory.  This is not especially important now, but it
will help the new DWARF indexer.
gdb/dwarf2/read.c
gdb/dwarf2/read.h