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.h | |
parent | 564b1e3f2906bbbf53d003d6fdbcfc83661385e2 (diff) | |
download | gdb-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.h | 1 |
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, ...) |