aboutsummaryrefslogtreecommitdiff
path: root/gdb/progspace.c
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/progspace.c
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/progspace.c')
-rw-r--r--gdb/progspace.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/progspace.c b/gdb/progspace.c
index f6da7e7..e0bcc5a 100644
--- a/gdb/progspace.c
+++ b/gdb/progspace.c
@@ -401,8 +401,7 @@ clear_program_space_solib_cache (struct program_space *pspace)
{
VEC_free (so_list_ptr, pspace->added_solibs);
- free_char_ptr_vec (pspace->deleted_solibs);
- pspace->deleted_solibs = NULL;
+ pspace->deleted_solibs.clear ();
}