diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2016-11-30 21:43:17 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2016-11-30 21:43:17 -0500 |
commit | 4a9d4ea535a6c9b8c2e7cdf91377abe284d0b277 (patch) | |
tree | 04c93d13165e23605d6ba429eff04990fdc3f91f /gdb/ChangeLog | |
parent | 56df3084847984aeddd8c24ca997242ec8c5a369 (diff) | |
download | gdb-4a9d4ea535a6c9b8c2e7cdf91377abe284d0b277.zip gdb-4a9d4ea535a6c9b8c2e7cdf91377abe284d0b277.tar.gz gdb-4a9d4ea535a6c9b8c2e7cdf91377abe284d0b277.tar.bz2 |
Use std::vector for mi_ui_out_data::streams
Use a standard vector instead of the home-made version. I used a vector
of plain pointers, because the mi_ui_out_data object doesn't own the
streams objects (i.e. they shouldn't be deleted when the vector is
deleted).
gdb/ChangeLog:
* mi/mi-out.c: Remove vec.h include.
(mi_ui_out_data) <streams>: Change type to std::vector.
(mi_field_string): Update.
(mi_field_fmt): Update.
(mi_flush): Update.
(mi_redirect): Update.
(field_separator): Update.
(mi_open): Update.
(mi_close): Update.
(mi_out_buffered): Update.
(mi_out_rewind): Update.
(mi_out_put): Update.
(mi_out_data_ctor): Update.
(mi_out_data_dtor): Don't free streams.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8950f02..e6c7bbd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,22 @@ 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca> + * mi/mi-out.c: Remove vec.h include. + (mi_ui_out_data) <streams>: Change type to std::vector. + (mi_field_string): Update. + (mi_field_fmt): Update. + (mi_flush): Update. + (mi_redirect): Update. + (field_separator): Update. + (mi_open): Update. + (mi_close): Update. + (mi_out_buffered): Update. + (mi_out_rewind): Update. + (mi_out_put): Update. + (mi_out_data_ctor): Update. + (mi_out_data_dtor): Don't free streams. + +2016-11-30 Simon Marchi <simon.marchi@polymtl.ca> + * ui-out.c (ui_out_level_p): Remove typedef. (DEF_VEC_P (ui_out_level_p)): Remove definition. (struct ui_out) <levels>: Change type to vector of unique_ptr of |