Change decode_compound_collector to use std::vector
authorKeith Seitz <keiths@redhat.com>
Wed, 29 Aug 2018 22:12:23 +0000 (15:12 -0700)
committerKeith Seitz <keiths@redhat.com>
Wed, 29 Aug 2018 22:12:23 +0000 (15:12 -0700)
commit4dedf84da98ca7dcb9fc80895044d09b5787c1f0
tree76c8822a9aa988fd3f5afe6380d7f18d58532ef6
parentc2a031c5822b4256f116254def47b9887c230e68
Change decode_compound_collector to use std::vector

This patch changes decode_compound_collector to use std::vector instead of
VEC, eliminating a cleanup in the process.

gdb/ChangeLog:

* linespec.c (decode_compound_collector::decode_compound_collector):
Remove initialization for `m_symtabs'.
(decode_compound_collector::release_symbols): Change return type
to std::vector.  Update all callers.
(class decode_compound_collector) <m_symbols>: Change type to
std::vector.
(lookup_prefix_sym): Change return type to std::vector.  Update all
callers.
(compare_symbols): Remove.
(std_compare_symbols): Rename to `compare_symbols'.
(find_method): Change `sym_classes' parameter to std::vector.
Update all callers.  Use std::sort to sort sym_classes.
(find_linespec_symbols): Remove cleanup.
gdb/ChangeLog
gdb/linespec.c