Remove typep and VEC(typep) from linespec.c
authorTom Tromey <tom@tromey.com>
Sat, 31 Mar 2018 18:52:57 +0000 (12:52 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 5 Apr 2018 13:39:37 +0000 (07:39 -0600)
commit8e8d776ead8187343652bda8aa373babe505bd4e
tree88f6459a6589bf602527b24f983ec6e9953436c8
parent9b2f85815c57d2eb4322a3d87464b5686cdbb391
Remove typep and VEC(typep) from linespec.c

This removes VEC(typep) from linespec.c in favor of std::vector.  It
also removes the "typep" typedef.  This change allowed the removal of
some cleanups.

I believe the previous cleanup code in find_superclass_methods could
result in a memory leak, so this patch is an improvement in that way
as well.

ChangeLog
2018-04-05  Tom Tromey  <tom@tromey.com>

* linespec.c (typep): Remove typedef.
(find_methods, find_superclass_methods): Take a std::vector.
(find_method): Use std::vector.
gdb/ChangeLog
gdb/linespec.c