diff options
author | Siva Chandra Reddy <sivachandra@sourceware.org> | 2013-02-12 01:47:49 +0000 |
---|---|---|
committer | Siva Chandra Reddy <sivachandra@sourceware.org> | 2013-02-12 01:47:49 +0000 |
commit | b65a2bd9297dcbdb55c0a84e38246553b5255ac7 (patch) | |
tree | 44d8e9cb571ade6e0a968189c2b1d772aa962281 /gdb/ChangeLog | |
parent | 52df48454323793caaf042dd677689f7a71fb997 (diff) | |
download | binutils-b65a2bd9297dcbdb55c0a84e38246553b5255ac7.zip binutils-b65a2bd9297dcbdb55c0a84e38246553b5255ac7.tar.gz binutils-b65a2bd9297dcbdb55c0a84e38246553b5255ac7.tar.bz2 |
Add support for a destructor for ui_out data and use it to
provide a ui_out destructor.
* ui-out.h: Declare the new ui_out destructor.
(ui_out_impl): Add a field for data destructor in ui_out_impl.
* ui-out.c (default_data_destroy): Add a default data destructor
which does nothing.
(default_ui_out_impl): Set the new data_destroy field to
default_data_destroy
(uo_data_destroy): Local function which invokes the data
destructor if present.
(clear_table): Local function which clears the table data of a
ui_out object.
(ui_out_destroy): Public function which frees a ui_out object.
(ui_out_table_end): Use the new clear_table function.
* cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
NULL.
* mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
to NULL.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 80d4898..a40756c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,24 @@ +2013-02-11 Siva Chandra Reddy <sivachandra@google.com> + + Add support for a destructor for ui_out data and use it to + provide a ui_out destructor. + * ui-out.h: Declare the new ui_out destructor. + (ui_out_impl): Add a field for data destructor in ui_out_impl. + * ui-out.c (default_data_destroy): Add a default data destructor + which does nothing. + (default_ui_out_impl): Set the new data_destroy field to + default_data_destroy + (uo_data_destroy): Local function which invokes the data + destructor if present. + (clear_table): Local function which clears the table data of a + ui_out object. + (ui_out_destroy): Public function which frees a ui_out object. + (ui_out_table_end): Use the new clear_table function. + * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to + NULL. + * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field + to NULL. + 2013-02-11 Doug Evans <dje@google.com> * printcmd.c (printf_c_string,printf_wide_c_string): New functions. |