diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-16 15:56:24 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-06-25 07:48:37 -0600 |
commit | ab313b35e505ccab9c23acbe82087b6c22a2088d (patch) | |
tree | 4502487ef785af2ee0237c9e685717202f8df23b /gdb/tui/tui-hooks.h | |
parent | dc2c33e4562e0af441a9c8acff0400a78cb45d98 (diff) | |
download | binutils-ab313b35e505ccab9c23acbe82087b6c22a2088d.zip binutils-ab313b35e505ccab9c23acbe82087b6c22a2088d.tar.gz binutils-ab313b35e505ccab9c23acbe82087b6c22a2088d.tar.bz2 |
Use new and delete for tui_gen_win_info
This changes tui_gen_win_info to be allocated with new and destroyed
with delete.
gdb/ChangeLog
2019-06-25 Tom Tromey <tom@tromey.com>
* tui/tui-layout.c (init_and_make_win): Use new.
* tui/tui-data.h (struct tui_gen_win_info): Add constructor,
destructor, initializers.
(tui_alloc_generic_win_info): Don't declare.
* tui/tui-data.c (_locator): Add argument to constructor.
(source_win, disasm_win): New globals.
(exec_info): Remove.
(tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
Update.
(tui_alloc_generic_win_info): Remove.
(init_content_element): Use new.
(tui_win_info::tui_win_info): Update.
(free_content_elements) <case DATA_WIN>: Use delete.
Diffstat (limited to 'gdb/tui/tui-hooks.h')
0 files changed, 0 insertions, 0 deletions