[binutils-gdb] Remove typep and VEC(typep) from linespec.c

sergiodj+buildbot@sergiodj.net sergiodj+buildbot@sergiodj.net
Thu Apr 5 15:48:00 GMT 2018


*** TEST RESULTS FOR COMMIT 8e8d776ead8187343652bda8aa373babe505bd4e ***

Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: 8e8d776ead8187343652bda8aa373babe505bd4e

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.



More information about the Gdb-testers mailing list