binutils-gdb/gdb/tui
Simon Marchi 5486f16481 Use new/delete instead of malloc/free-based functions
The following patches introduce C++ vectors and strings as fields of the
various ui_out structures.  We therefore need to use new/delete so that
their contructor/destructor is called.  I find it simpler to change all
the allocations in a separate preliminary patch, rather than in each
individual patch.

gdb/ChangeLog:

	* cli-out.c (cli_uiout_dtor): Use delete instead of xfree.
	(cli_out_new): Use new instead of XNEW.
	* mi/mi-out.c (mi_out_data_dtor): Use delete instead of xfree.
	(mi_out_new): Use new instead of XNEW.
	* tui/tui-out.c (tui_out_new): Likewise.
	* ui-out.c (push_level): Likewise.
	(pop_level): Use delete instead of xfree.
	(clear_header_list): Use delete instead of xfree.
	(append_header_to_list): Use new instead of XNEW.
	(ui_out_new): Likewise.
2016-11-30 21:41:46 -05:00
..
ChangeLog-1998-2003
tui-command.c
tui-command.h
tui-data.c
tui-data.h
tui-disasm.c tui-disasm: Fix line buffer size calculation 2016-11-09 13:02:13 +01:00
tui-disasm.h
tui-file.c
tui-file.h
tui-hooks.c
tui-hooks.h
tui-interp.c Remove make_cleanup_restore_current_ui 2016-10-21 14:17:34 -06:00
tui-io.c Use getcurx in curses code 2016-07-14 10:35:38 -06:00
tui-io.h
tui-layout.c
tui-layout.h
tui-out.c Use new/delete instead of malloc/free-based functions 2016-11-30 21:41:46 -05:00
tui-regs.c
tui-regs.h
tui-source.c
tui-source.h
tui-stack.c Pass a NULL pointer as the last argument to find_pc_partial_function. 2016-06-14 11:49:34 -07:00
tui-stack.h
tui-win.c
tui-win.h
tui-windata.c
tui-windata.h
tui-wingeneral.c
tui-wingeneral.h
tui-winsource.c tui-winsource: Remove failed-allocation logic 2016-11-09 13:02:13 +01:00
tui-winsource.h
tui.c Make gdb_in_secondary_prompt_p() be per UI 2016-06-21 01:11:51 +01:00
tui.h