From 6fb16ce6eaba92b86a22eac58eb0eb61b3fd8804 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 2 Mar 2018 23:22:08 -0500 Subject: Make program_space::deleted_solibs a vector of std::string This allows removing a usage of free_char_ptr_vec. gdb/ChangeLog: * progspace.h (struct program_space) : Change type to std::vector. * progspace.c (clear_program_space_solib_cache): Adjust. * breakpoint.c (print_solib_event): Adjust. (check_status_catch_solib): Adjust. * solib.c (update_solib_list): Adjust. * ui-out.h (class ui_out) : New overload. * ui-out.c (ui_out::field_string): New overload. --- gdb/ui-out.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/ui-out.c') diff --git a/gdb/ui-out.c b/gdb/ui-out.c index 8785bfb..0340a44 100644 --- a/gdb/ui-out.c +++ b/gdb/ui-out.c @@ -552,6 +552,12 @@ ui_out::field_string (const char *fldname, const char *string) do_field_string (fldno, width, align, fldname, string); } +void +ui_out::field_string (const char *fldname, const std::string &string) +{ + field_string (fldname, string.c_str ()); +} + /* VARARGS */ void ui_out::field_fmt (const char *fldname, const char *format, ...) -- cgit v1.1