Move file_and_directory to new file and C++-ize
authorTom Tromey <tom@tromey.com>
Sun, 28 Nov 2021 17:48:53 +0000 (10:48 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 4 Dec 2021 18:16:02 +0000 (11:16 -0700)
commitbb3f8ae2902a9878a25fad21efd23fe0f888c232
treec5b7e5aacc2c1c8be350051fc782c85f0890ab63
parent17f60345f0cfff8faf6f4f734cf2f7e56094e977
Move file_and_directory to new file and C++-ize

This moves file_and_directory to a new file, and then C++-izes it --
replacing direct assignments with methods, and arranging for it to own
any string that must be computed.  Finally, the CU's objfile will only
be used on demand; this is an important property for the new DWARF
indexer's parallel mode.
gdb/dwarf2/file-and-dir.h [new file with mode: 0644]
gdb/dwarf2/read.c