diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2018-03-02 23:22:08 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2018-03-02 23:22:09 -0500 |
commit | 6fb16ce6eaba92b86a22eac58eb0eb61b3fd8804 (patch) | |
tree | d66be5c5246fd9b4407ba1deb0d885710df2ca8c /gdb/ui-out.c | |
parent | 564b1e3f2906bbbf53d003d6fdbcfc83661385e2 (diff) | |
download | fsf-binutils-gdb-6fb16ce6eaba92b86a22eac58eb0eb61b3fd8804.zip fsf-binutils-gdb-6fb16ce6eaba92b86a22eac58eb0eb61b3fd8804.tar.gz fsf-binutils-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.c')
-rw-r--r-- | gdb/ui-out.c | 6 |
1 files changed, 6 insertions, 0 deletions
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, ...) |