diff options
author | Tom Tromey <tom@tromey.com> | 2017-09-29 22:35:58 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-10-03 05:33:47 -0600 |
commit | 895b8f306b1f54d85915ca0d24368f40b2e42554 (patch) | |
tree | 4f7e798e0c0cd0bab6dbe2adb72bdd06d4efaa8f /gdb/main.c | |
parent | 0efef6405493c0bf438486819bec70b304276e16 (diff) | |
download | gdb-895b8f306b1f54d85915ca0d24368f40b2e42554.zip gdb-895b8f306b1f54d85915ca0d24368f40b2e42554.tar.gz gdb-895b8f306b1f54d85915ca0d24368f40b2e42554.tar.bz2 |
Remove make_delete_ui_cleanup
This removes new_ui and delete_ui in favor of ordinary 'new' and
'delete', and then removes make_delete_ui_cleanup in favor of
std::unique_ptr.
2017-10-03 Tom Tromey <tom@tromey.com>
* event-top.c (stdin_event_handler): Update.
* main.c (captured_main_1): Update.
* top.h (make_delete_ui_cleanup): Remove.
(struct ui): Add constructor and destructor.
(new_ui, delete_ui): Remove.
* top.c (make_delete_ui_cleanup): Remove.
(new_ui_command): Use std::unique_ptr.
(delete_ui_cleanup): Remove.
(ui::ui): Rename from new_ui. Update.
(free_ui): Remove.
(ui::~ui): Rename from delete_ui. Update.
Diffstat (limited to 'gdb/main.c')
-rw-r--r-- | gdb/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -528,7 +528,7 @@ captured_main_1 (struct captured_main_args *context) setvbuf (stderr, NULL, _IONBF, BUFSIZ); #endif - main_ui = new_ui (stdin, stdout, stderr); + main_ui = new ui (stdin, stdout, stderr); current_ui = main_ui; gdb_stdtargerr = gdb_stderr; /* for moment */ |