aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-out.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2018-03-02 23:22:08 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2018-03-02 23:22:09 -0500
commit6fb16ce6eaba92b86a22eac58eb0eb61b3fd8804 (patch)
treed66be5c5246fd9b4407ba1deb0d885710df2ca8c /gdb/ui-out.h
parent564b1e3f2906bbbf53d003d6fdbcfc83661385e2 (diff)
downloadgdb-6fb16ce6eaba92b86a22eac58eb0eb61b3fd8804.zip
gdb-6fb16ce6eaba92b86a22eac58eb0eb61b3fd8804.tar.gz
gdb-6fb16ce6eaba92b86a22eac58eb0eb61b3fd8804.tar.bz2
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) <deleted_solibs>: Change type to std::vector<std::string>. * 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) <field_string>: New overload. * ui-out.c (ui_out::field_string): New overload.
Diffstat (limited to 'gdb/ui-out.h')
-rw-r--r--gdb/ui-out.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/ui-out.h b/gdb/ui-out.h
index ce224ed..1708542 100644
--- a/gdb/ui-out.h
+++ b/gdb/ui-out.h
@@ -104,6 +104,7 @@ class ui_out
void field_core_addr (const char *fldname, struct gdbarch *gdbarch,
CORE_ADDR address);
void field_string (const char *fldname, const char *string);
+ void field_string (const char *fldname, const std::string &string);
void field_stream (const char *fldname, string_file &stream);
void field_skip (const char *fldname);
void field_fmt (const char *fldname, const char *format, ...)