From 9b2f85815c57d2eb4322a3d87464b5686cdbb391 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 31 Mar 2018 12:43:56 -0600 Subject: More use of std::vector in linespec.c This changes some spots in linespec.c to take a std::vector. This patch spilled out to objc-lang.c a bit as well. This change allows for the removal of some cleanups. ChangeLog 2018-04-05 Tom Tromey * utils.c (compare_strings): Remove. * utils.h (compare_strings): Remove. * objc-lang.h (find_imps): Update. * objc-lang.c (find_methods): Take a std::vector. (uniquify_strings, find_imps): Likewise. * linespec.c (find_methods): Take a std::vector. (decode_objc): Use std::vector. (add_all_symbol_names_from_pspace, find_superclass_methods): Take a std::vector. (find_method, find_function_symbols): Use std::vector. --- gdb/objc-lang.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/objc-lang.h') diff --git a/gdb/objc-lang.h b/gdb/objc-lang.h index 0727dfb..d3ed1d5 100644 --- a/gdb/objc-lang.h +++ b/gdb/objc-lang.h @@ -37,8 +37,8 @@ extern char *objc_demangle (const char *mangled, int options); extern int find_objc_msgcall (CORE_ADDR pc, CORE_ADDR *new_pc); -extern const char * - find_imps (const char *method, VEC (const_char_ptr) **symbol_names); +extern const char *find_imps (const char *method, + std::vector *symbol_names); extern struct value *value_nsstring (struct gdbarch *gdbarch, char *ptr, int len); -- cgit v1.1