Simplify file_and_directory storage management
authorTom Tromey <tom@tromey.com>
Sun, 4 Jul 2021 18:51:52 +0000 (12:51 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 17 Jul 2021 16:41:42 +0000 (10:41 -0600)
commitd030267c9cc0fb594d3dda264b78114afc6eb214
tree101853657cc9d826cf7fe6c5137536e45e2c89db
parentdcce7ec41082666e51e39480e2c4037124e1e1b5
Simplify file_and_directory storage management

file_and_directory carries a std::string in case the compilation
directory is computed, but a subsequent patch wants to preserve this
string without also having to maintain the storage for it.  So, this
patch arranges for the compilation directory string to be stored in
the per-BFD string bcache instead.
gdb/dwarf2/read.c