GNU Binutils with patches for OS216
リビジョン | a30cb6dabb20e26dc80b0952ae709613372359f8 (tree) |
---|---|
日時 | 2020-07-02 12:21:16 |
作者 | Tom Tromey <tom@trom...> |
コミッター | Tom Tromey |
Derive tui_locator_window from tui_win_info
tui_locator_window is the last remaining concrete child class of
tui_gen_win_info. It seems a bit cleaner to me to flatten the
hierarchy a bit; this patch prepares for that by changing
tui_locator_window to derive from tui_win_info.
gdb/ChangeLog
2020-07-01 Tom Tromey <tom@tromey.com>
* tui/tui-stack.h (struct tui_locator_window): Derive from
tui_win_info.
<do_scroll_horizontal, do_scroll_vertical>: New methods.
<can_box>: New method.
@@ -1,5 +1,12 @@ | ||
1 | 1 | 2020-07-01 Tom Tromey <tom@tromey.com> |
2 | 2 | |
3 | + * tui/tui-stack.h (struct tui_locator_window): Derive from | |
4 | + tui_win_info. | |
5 | + <do_scroll_horizontal, do_scroll_vertical>: New methods. | |
6 | + <can_box>: New method. | |
7 | + | |
8 | +2020-07-01 Tom Tromey <tom@tromey.com> | |
9 | + | |
3 | 10 | * tui/tui-stack.h (struct tui_locator_window): Remove body. |
4 | 11 | |
5 | 12 | 2020-07-01 Tom Tromey <tom@tromey.com> |
@@ -28,7 +28,7 @@ struct frame_info; | ||
28 | 28 | |
29 | 29 | /* Locator window class. */ |
30 | 30 | |
31 | -struct tui_locator_window : public tui_gen_win_info | |
31 | +struct tui_locator_window : public tui_win_info | |
32 | 32 | { |
33 | 33 | tui_locator_window () = default; |
34 | 34 |
@@ -42,6 +42,11 @@ struct tui_locator_window : public tui_gen_win_info | ||
42 | 42 | return 1; |
43 | 43 | } |
44 | 44 | |
45 | + bool can_box () const override | |
46 | + { | |
47 | + return false; | |
48 | + } | |
49 | + | |
45 | 50 | void rerender () override; |
46 | 51 | |
47 | 52 | /* Update the locator, with the provided arguments. |
@@ -62,6 +67,16 @@ struct tui_locator_window : public tui_gen_win_info | ||
62 | 67 | /* Architecture associated with code at this location. */ |
63 | 68 | struct gdbarch *gdbarch = nullptr; |
64 | 69 | |
70 | +protected: | |
71 | + | |
72 | + void do_scroll_vertical (int n) override | |
73 | + { | |
74 | + } | |
75 | + | |
76 | + void do_scroll_horizontal (int n) override | |
77 | + { | |
78 | + } | |
79 | + | |
65 | 80 | private: |
66 | 81 | |
67 | 82 | /* Create the status line to display as much information as we can |