Use new and delete for tui_gen_win_info
authorTom Tromey <tom@tromey.com>
Sun, 16 Jun 2019 21:56:24 +0000 (15:56 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:37 +0000 (07:48 -0600)
commitab313b35e505ccab9c23acbe82087b6c22a2088d
tree4502487ef785af2ee0237c9e685717202f8df23b
parentdc2c33e4562e0af441a9c8acff0400a78cb45d98
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.
gdb/ChangeLog
gdb/tui/tui-data.c
gdb/tui/tui-data.h
gdb/tui/tui-layout.c
This page took 0.02575 seconds and 4 git commands to generate.