From: Tom Tromey Date: Tue, 2 Jul 2019 21:54:08 +0000 (-0600) Subject: Move tui_disasm_window to tui-disasm.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=88f7e873362279462c676b26fee62376dba82b5c;p=binutils-gdb.git Move tui_disasm_window to tui-disasm.h This moves tui_disasm_window to tui-disasm.h. In this case there were no method definitions to be moved. gdb/ChangeLog 2019-07-17 Tom Tromey * tui/tui-disasm.h (struct tui_disasm_window): Move from tui-data.h. * tui/tui-data.h (struct tui_disasm_window): Move to tui-disasm.h. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5f413c987d6..3b0aca613ad 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2019-07-17 Tom Tromey + + * tui/tui-disasm.h (struct tui_disasm_window): Move from + tui-data.h. + * tui/tui-data.h (struct tui_disasm_window): Move to + tui-disasm.h. + 2019-07-17 Tom Tromey * tui/tui-regs.h (struct tui_data_item_window): Move from diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index e66adc1f29a..bb7f0f91ea2 100644 --- a/gdb/tui/tui-data.h +++ b/gdb/tui/tui-data.h @@ -414,29 +414,6 @@ private: gdb::observers::token m_observable; }; -/* A TUI disassembly window. */ - -struct tui_disasm_window : public tui_source_window_base -{ - tui_disasm_window () - : tui_source_window_base (DISASSEM_WIN) - { - } - - DISABLE_COPY_AND_ASSIGN (tui_disasm_window); - - const char *name () const override - { - return DISASSEM_NAME; - } - - bool location_matches_p (struct bp_location *loc, int line_no) override; - -protected: - - void do_scroll_vertical (int num_to_scroll) override; -}; - extern int tui_win_is_auxiliary (enum tui_win_type win_type); diff --git a/gdb/tui/tui-disasm.h b/gdb/tui/tui-disasm.h index 59822c70c5c..cc00d0018fa 100644 --- a/gdb/tui/tui-disasm.h +++ b/gdb/tui/tui-disasm.h @@ -22,8 +22,31 @@ #ifndef TUI_TUI_DISASM_H #define TUI_TUI_DISASM_H -#include "tui/tui.h" /* For enum tui_status. */ -#include "tui/tui-data.h" /* For enum tui_scroll_direction. */ +#include "tui/tui.h" +#include "tui/tui-data.h" + +/* A TUI disassembly window. */ + +struct tui_disasm_window : public tui_source_window_base +{ + tui_disasm_window () + : tui_source_window_base (DISASSEM_WIN) + { + } + + DISABLE_COPY_AND_ASSIGN (tui_disasm_window); + + const char *name () const override + { + return DISASSEM_NAME; + } + + bool location_matches_p (struct bp_location *loc, int line_no) override; + +protected: + + void do_scroll_vertical (int num_to_scroll) override; +}; extern enum tui_status tui_set_disassem_content (tui_source_window_base *, struct gdbarch *, CORE_ADDR);