diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-16 10:49:45 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-06-25 07:48:27 -0600 |
commit | b4eb24524b5838141bd3c3998afc81f65302eca1 (patch) | |
tree | 84e51fcd92583a8f1f751ee7d0a49f47544967f5 /gdb/tui/tui-data.h | |
parent | 8761a91b2614304963bfe211ff8c682c7eba3b51 (diff) | |
download | gdb-b4eb24524b5838141bd3c3998afc81f65302eca1.zip gdb-b4eb24524b5838141bd3c3998afc81f65302eca1.tar.gz gdb-b4eb24524b5838141bd3c3998afc81f65302eca1.tar.bz2 |
Remove tui_list
This removes the tui_list type in favor of a std::vector.
gdb/ChangeLog
2019-06-25 Tom Tromey <tom@tromey.com>
* 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.
Diffstat (limited to 'gdb/tui/tui-data.h')
-rw-r--r-- | gdb/tui/tui-data.h | 10 |
1 files changed, 1 insertions, 9 deletions
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_win_info *> &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 *); |