Get rid of VEC(filename_language)
authorSimon Marchi <simon.marchi@ericsson.com>
Sat, 28 Oct 2017 01:47:30 +0000 (21:47 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Sat, 28 Oct 2017 01:47:30 +0000 (21:47 -0400)
commit593e3209f3e4e525030bc8768850f3876fd0b850
tree4e707e902b6b5dabafb89e4fd9bf2fecc06f2820
parent32fa66eb88d029576cfd8f5698d0579662d2f045
Get rid of VEC(filename_language)

This patch removes VEC(filename_language), replacing its usage with
std::vector.  filename_language::ext is changed to an std::string at the
same time.

Regtested on the buildbot.

gdb/ChangeLog:

* symfile.c (filename_language): Make struct, not typedef.  Add
constructor.
<ext>: Change type to std::string.
(DEF_VEC_O (filename_language)): Remove.
(filename_language_table): Change type to std::vector.
(add_filename_language): Adjust.
(set_ext_lang_command): Adjust.
(info_ext_lang_command): Adjust.
(deduce_language_from_filename): Adjust.
(class scoped_restore_filename_language_table): Remove.
(test_filename_language): Use scoped_restore.
(test_set_ext_lang_command): Use scoped_restore, adjust to
std::vector change.
gdb/ChangeLog
gdb/symfile.c