aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-regs.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui/tui-regs.h')
-rw-r--r--gdb/tui/tui-regs.h27
1 files changed, 9 insertions, 18 deletions
diff --git a/gdb/tui/tui-regs.h b/gdb/tui/tui-regs.h
index 8b5e941..29b54a5 100644
--- a/gdb/tui/tui-regs.h
+++ b/gdb/tui/tui-regs.h
@@ -26,7 +26,7 @@
/* A data item window. */
-struct tui_data_item_window : public tui_gen_win_info
+struct tui_data_item_window
{
tui_data_item_window () = default;
@@ -34,23 +34,15 @@ struct tui_data_item_window : public tui_gen_win_info
tui_data_item_window (tui_data_item_window &&) = default;
- void rerender () override;
-
- void refresh_window () override;
-
- int max_height () const override
- {
- return 1;
- }
-
- int min_height () const override
- {
- return 1;
- }
+ void rerender (WINDOW *handle, int field_width);
+ /* Location. */
+ int x = 0;
+ int y = 0;
/* The register number. */
int regno = -1;
bool highlight = false;
+ bool visible = false;
std::string content;
};
@@ -61,10 +53,6 @@ struct tui_data_window : public tui_win_info
DISABLE_COPY_AND_ASSIGN (tui_data_window);
- void refresh_window () override;
-
- void no_refresh () override;
-
const char *name () const override
{
return DATA_NAME;
@@ -138,6 +126,9 @@ private:
std::vector<tui_data_item_window> m_regs_content;
int m_regs_column_count = 0;
struct reggroup *m_current_group = nullptr;
+
+ /* Width of each register's display area. */
+ int m_item_width = 0;
};
#endif /* TUI_TUI_REGS_H */