-/* Current Layout definition. */
-struct tui_layout_def
-{
- enum tui_win_type display_mode;
-};
-
-/* Flags to tell what kind of breakpoint is at current line. */
-enum tui_bp_flag
-{
- TUI_BP_ENABLED = 0x01,
- TUI_BP_DISABLED = 0x02,
- TUI_BP_HIT = 0x04,
- TUI_BP_CONDITIONAL = 0x08,
- TUI_BP_HARDWARE = 0x10
-};
-
-DEF_ENUM_FLAGS_TYPE (enum tui_bp_flag, tui_bp_flags);
-
-/* Elements in the Source/Disassembly Window. */
-struct tui_source_element
-{
- tui_source_element ()
- {
- line_or_addr.loa = LOA_LINE;
- line_or_addr.u.line_no = 0;
- }
-
- ~tui_source_element ()
- {
- xfree (line);
- }
-
- char *line = nullptr;
- struct tui_line_or_address line_or_addr;
- bool is_exec_point = false;
- tui_bp_flags break_mode = 0;
-};
-
-
-#ifdef PATH_MAX
-# define MAX_LOCATOR_ELEMENT_LEN PATH_MAX
-#else
-# define MAX_LOCATOR_ELEMENT_LEN 1024
-#endif
-
-/* Position of breakpoint markers in the exec info string. */
-#define TUI_BP_HIT_POS 0
-#define TUI_BP_BREAK_POS 1
-#define TUI_EXEC_POS 2
-#define TUI_EXECINFO_SIZE 4
-
-typedef char tui_exec_info_content[TUI_EXECINFO_SIZE];
-
-/* Execution info window class. */
-
-struct tui_exec_info_window : public tui_gen_win_info
-{
- tui_exec_info_window ()
- : tui_gen_win_info (EXEC_INFO_WIN)
- {
- }
-
- ~tui_exec_info_window () override
- {
- xfree (m_content);
- }
-
- /* Get or allocate contents. */
- tui_exec_info_content *maybe_allocate_content (int n_elements);
-
- /* Return the contents. */
- const tui_exec_info_content *get_content () const
- {
- return m_content;
- }
-
-private:
-
- tui_exec_info_content *m_content = nullptr;
-};
-
-/* Locator window class. */
-
-struct tui_locator_window : public tui_gen_win_info
-{
- tui_locator_window ()
- : tui_gen_win_info (LOCATOR_WIN)
- {
- full_name[0] = 0;
- proc_name[0] = 0;
- }
-
- char full_name[MAX_LOCATOR_ELEMENT_LEN];
- char proc_name[MAX_LOCATOR_ELEMENT_LEN];
- int line_no = 0;
- CORE_ADDR addr = 0;
- /* Architecture associated with code at this location. */
- struct gdbarch *gdbarch = nullptr;
-};
-
-/* A data item window. */
-
-struct tui_data_item_window : public tui_gen_win_info
-{
- tui_data_item_window ()
- : tui_gen_win_info (DATA_ITEM_WIN)
- {
- }
-
- ~tui_data_item_window () override;
-
- const char *name = nullptr;
- /* The register number, or data display number. */
- int item_no = UNDEFINED_ITEM;
- void *value = nullptr;
- bool highlight = false;
- char *content = nullptr;
-};
-