From b4eb24524b5838141bd3c3998afc81f65302eca1 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 16 Jun 2019 10:49:45 -0600 Subject: Remove tui_list This removes the tui_list type in favor of a std::vector. gdb/ChangeLog 2019-06-25 Tom Tromey * tui/tui-winsource.c (tui_display_main) (tui_update_source_windows_with_addr) (tui_update_all_breakpoint_info): Update. * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights) (new_height_ok, parse_scrolling_args): Update. * tui/tui-stack.c (tui_show_frame_info): Update. * tui/tui-data.h (struct tui_list): Remove. (tui_source_windows): Return a reference to a std::vector. * tui/tui-data.c (source_windows): Now a std::vector. (tui_source_windows): Change return type. (tui_clear_source_windows): Rewrite. (tui_clear_source_windows_detail, tui_add_to_source_windows) (tui_free_all_source_wins_content): Rewrite. --- gdb/tui/tui-data.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'gdb/tui/tui-data.h') diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index 5006604..8008893 100644 --- a/gdb/tui/tui-data.h +++ b/gdb/tui/tui-data.h @@ -102,14 +102,6 @@ enum tui_scroll_direction }; -/* General list struct. */ -struct tui_list -{ - struct tui_win_info **list; - int count; -}; - - /* The kinds of layouts available. */ enum tui_layout_type { @@ -360,7 +352,7 @@ extern void tui_set_term_width_to (int); extern struct tui_gen_win_info *tui_locator_win_info_ptr (void); extern struct tui_gen_win_info *tui_source_exec_info_win_ptr (void); extern struct tui_gen_win_info *tui_disassem_exec_info_win_ptr (void); -extern struct tui_list *tui_source_windows (void); +extern std::vector &tui_source_windows (); extern void tui_clear_source_windows (void); extern void tui_clear_source_windows_detail (void); extern void tui_clear_win_detail (struct tui_win_info *); -- cgit v1.1