• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Révisiona30cb6dabb20e26dc80b0952ae709613372359f8 (tree)
l'heure2020-07-02 12:21:16
AuteurTom Tromey <tom@trom...>
CommiterTom Tromey

Message de Log

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.

Change Summary

Modification

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
11 2020-07-01 Tom Tromey <tom@tromey.com>
22
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+
310 * tui/tui-stack.h (struct tui_locator_window): Remove body.
411
512 2020-07-01 Tom Tromey <tom@tromey.com>
--- a/gdb/tui/tui-stack.h
+++ b/gdb/tui/tui-stack.h
@@ -28,7 +28,7 @@ struct frame_info;
2828
2929 /* Locator window class. */
3030
31-struct tui_locator_window : public tui_gen_win_info
31+struct tui_locator_window : public tui_win_info
3232 {
3333 tui_locator_window () = default;
3434
@@ -42,6 +42,11 @@ struct tui_locator_window : public tui_gen_win_info
4242 return 1;
4343 }
4444
45+ bool can_box () const override
46+ {
47+ return false;
48+ }
49+
4550 void rerender () override;
4651
4752 /* Update the locator, with the provided arguments.
@@ -62,6 +67,16 @@ struct tui_locator_window : public tui_gen_win_info
6267 /* Architecture associated with code at this location. */
6368 struct gdbarch *gdbarch = nullptr;
6469
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+
6580 private:
6681
6782 /* Create the status line to display as much information as we can