GDB (xrefs)

Classes | Macros | Typedefs | Enumerations | Functions | Variables
tui-data.h File Reference
`#include "tui/tui.h"`
`#include "gdb_curses.h"`

Go to the source code of this file.

## Classes
struct | tui_point
struct | tui_gen_win_info
struct | tui_list
struct | tui_line_or_address
struct | tui_layout_def
struct | tui_source_element
struct | tui_data_element
struct | tui_command_element
struct | tui_locator_element
union | tui_which_element
struct | tui_win_element
struct | tui_data_info
struct | tui_source_info
struct | tui_command_info
struct | tui_win_info

## Macros
#define | DEFAULT_TAB_LEN 8
#define | NO_SRC_STRING "[ No Source Available ]"
#define | NO_DISASSEM_STRING "[ No Assembly Available ]"
#define | NO_REGS_STRING "[ Register Values Unavailable ]"
#define | NO_DATA_STRING "[ No Data Values Displayed ]"
#define | MAX_CONTENT_COUNT 100
#define | SRC_NAME "src"
#define | CMD_NAME "cmd"
#define | DATA_NAME "regs"
#define | DISASSEM_NAME "asm"
#define | TUI_NULL_STR ""
#define | DEFAULT_HISTORY_COUNT 25
#define | BOX_WINDOW TRUE
#define | DONT_BOX_WINDOW FALSE
#define | HILITE TRUE
#define | NO_HILITE FALSE
#define | WITH_LOCATOR TRUE
#define | NO_LOCATOR FALSE
#define | EMPTY_SOURCE_PROMPT TRUE
#define | NO_EMPTY_SOURCE_PROMPT FALSE
#define | UNDEFINED_ITEM -1
#define | MIN_WIN_HEIGHT 3
#define | MIN_CMD_WIN_HEIGHT 3
#define | PROC_PREFIX "In: "
#define | LINE_PREFIX "L"
#define | PC_PREFIX "PC: "
#define | SINGLE_KEY "(SingleKey)"
#define | MIN_LINE_WIDTH
#define | MIN_PROC_WIDTH 12
#define | MAX_TARGET_WIDTH 10
#define | MAX_PID_WIDTH 19
#define | MAX_LOCATOR_ELEMENT_LEN 1024
#define | TUI_BP_ENABLED 0x01
#define | TUI_BP_DISABLED 0x02
#define | TUI_BP_HIT 0x04
#define | TUI_BP_CONDITIONAL 0x08
#define | TUI_BP_HARDWARE 0x10
#define | TUI_BP_HIT_POS 0
#define | TUI_BP_BREAK_POS 1
#define | TUI_EXEC_POS 2
#define | TUI_EXECINFO_SIZE 4
#define | TUI_SRC_WIN tui_win_list[SRC_WIN]
#define | TUI_DISASM_WIN tui_win_list[DISASSEM_WIN]
#define | TUI_DATA_WIN tui_win_list[DATA_WIN]
#define | TUI_CMD_WIN tui_win_list[CMD_WIN]

## Typedefs
typedef struct tui_win_element ** | tui_win_content
typedef char | tui_exec_info_content[TUI_EXECINFO_SIZE]

## Enumerations
enum | tui_scroll_direction { FORWARD_SCROLL, BACKWARD_SCROLL, LEFT_SCROLL, RIGHT_SCROLL }
enum | tui_layout_type { SRC_COMMAND, DISASSEM_COMMAND, SRC_DISASSEM_COMMAND, SRC_DATA_COMMAND, DISASSEM_DATA_COMMAND, UNDEFINED_LAYOUT }
enum | tui_data_type { TUI_REGISTER, TUI_SCALAR, TUI_COMPLEX, TUI_STRUCT }
enum | tui_line_or_address_kind { LOA_LINE, LOA_ADDRESS }

## Functions
int | tui_win_is_source_type (enum tui_win_type win_type)
int | tui_win_is_auxillary (enum tui_win_type win_type)
int | tui_win_has_locator (struct tui_win_info *win_info)
void | tui_set_win_highlight (struct tui_win_info *win_info, int highlight)
void | tui_initialize_static_data (void)
struct tui_gen_win_info * | tui_alloc_generic_win_info (void)
struct tui_win_info * | tui_alloc_win_info (enum tui_win_type)
void | tui_init_generic_part (struct tui_gen_win_info *)
void | tui_init_win_info (struct tui_win_info *)
tui_win_content | tui_alloc_content (int, enum tui_win_type)
int | tui_add_content_elements (struct tui_gen_win_info *, int)
void | tui_init_content_element (struct tui_win_element *, enum tui_win_type)
void | tui_free_window (struct tui_win_info *)
void | tui_free_win_content (struct tui_gen_win_info *)
void | tui_free_data_content (tui_win_content, int)
void | tui_free_all_source_wins_content (void)
void | tui_del_window (struct tui_win_info *)
void | tui_del_data_windows (tui_win_content, int)
struct tui_win_info * | tui_partial_win_by_name (const char *)
const char * | tui_win_name (const struct tui_gen_win_info *)
enum tui_layout_type | tui_current_layout (void)
void | tui_set_current_layout_to (enum tui_layout_type)
int | tui_term_height (void)
void | tui_set_term_height_to (int)
int | tui_term_width (void)
void | tui_set_term_width_to (int)
struct tui_gen_win_info * | tui_locator_win_info_ptr (void)
struct tui_gen_win_info * | tui_source_exec_info_win_ptr (void)
struct tui_gen_win_info * | tui_disassem_exec_info_win_ptr (void)
struct tui_list * | tui_source_windows (void)
void | tui_clear_source_windows (void)
void | tui_clear_source_windows_detail (void)
void | tui_clear_win_detail (struct tui_win_info *)
void | tui_add_to_source_windows (struct tui_win_info *)
int | tui_default_tab_len (void)
void | tui_set_default_tab_len (int)
struct tui_win_info * | tui_win_with_focus (void)
void | tui_set_win_with_focus (struct tui_win_info *)
struct tui_layout_def * | tui_layout_def (void)
int | tui_win_resized (void)
void | tui_set_win_resized_to (int)
struct tui_win_info * | tui_next_win (struct tui_win_info *)
struct tui_win_info * | tui_prev_win (struct tui_win_info *)

## Variables
struct tui_win_info * | tui_win_list [MAX_MAJOR_WINDOWS]

## Macro Definition Documentation

## ◆ BOX_WINDOW

#define BOX_WINDOW TRUE

Definition at line 69 of file tui-data.h.

Referenced by make_data_window(), make_source_or_disasm_window(), and tui_make_window().

## ◆ CMD_NAME

#define CMD_NAME "cmd"

Definition at line 64 of file tui-data.h.

Referenced by tui_win_name(), and window_name_completer().

## ◆ DATA_NAME

#define DATA_NAME "regs"

Definition at line 65 of file tui-data.h.

Referenced by tui_reg_command(), tui_show_registers(), and tui_win_name().

## ◆ DEFAULT_HISTORY_COUNT

#define DEFAULT_HISTORY_COUNT 25

Definition at line 68 of file tui-data.h.

## ◆ DEFAULT_TAB_LEN

#define DEFAULT_TAB_LEN 8

Definition at line 57 of file tui-data.h.

## ◆ DISASSEM_NAME

#define DISASSEM_NAME "asm"

Definition at line 66 of file tui-data.h.

Referenced by tui_win_name().

## ◆ DONT_BOX_WINDOW

#define DONT_BOX_WINDOW FALSE

Definition at line 70 of file tui-data.h.

Referenced by make_command_window(), make_source_or_disasm_window(), show_data(), show_source_disasm_command(), show_source_or_disasm_and_command(), and tui_display_registers_from().

## ◆ EMPTY_SOURCE_PROMPT

#define EMPTY_SOURCE_PROMPT TRUE

Definition at line 75 of file tui-data.h.

Referenced by tui_adjust_win_heights(), tui_erase_source_content(), tui_resize_all(), tui_show_frame_info(), tui_update_source_window_as_is(), and tui_update_source_windows_with_addr().

## ◆ HILITE

#define HILITE TRUE

Definition at line 71 of file tui-data.h.

Referenced by box_win(), and tui_highlight_win().

## ◆ LINE_PREFIX

#define LINE_PREFIX "L"

Definition at line 83 of file tui-data.h.

Referenced by tui_make_status_line().

## ◆ MAX_CONTENT_COUNT

#define MAX_CONTENT_COUNT 100

Definition at line 62 of file tui-data.h.

## ◆ MAX_LOCATOR_ELEMENT_LEN

#define MAX_LOCATOR_ELEMENT_LEN 1024

Definition at line 189 of file tui-data.h.

Referenced by tui_set_locator_fullname(), and tui_set_locator_info().

## ◆ MAX_PID_WIDTH

#define MAX_PID_WIDTH 19

Definition at line 93 of file tui-data.h.

Referenced by tui_make_status_line().

## ◆ MAX_TARGET_WIDTH

#define MAX_TARGET_WIDTH 10

Definition at line 92 of file tui-data.h.

Referenced by tui_make_status_line().

## ◆ MIN_CMD_WIN_HEIGHT

#define MIN_CMD_WIN_HEIGHT 3

Definition at line 79 of file tui-data.h.

Referenced by new_height_ok(), and tui_resize_all().

## ◆ MIN_LINE_WIDTH

#define MIN_LINE_WIDTH

Value:
4 /* Use at least 4 digits for line
numbers. */

Definition at line 89 of file tui-data.h.

Referenced by tui_make_status_line().

## ◆ MIN_PROC_WIDTH

#define MIN_PROC_WIDTH 12

Definition at line 91 of file tui-data.h.

Referenced by tui_make_status_line().

## ◆ MIN_WIN_HEIGHT

#define MIN_WIN_HEIGHT 3

Definition at line 78 of file tui-data.h.

Referenced by new_height_ok(), and tui_resize_all().

## ◆ NO_DATA_STRING

#define NO_DATA_STRING "[ No Data Values Displayed ]"

Definition at line 61 of file tui-data.h.

Referenced by tui_display_all_data().

## ◆ NO_DISASSEM_STRING

#define NO_DISASSEM_STRING "[ No Assembly Available ]"

Definition at line 59 of file tui-data.h.

Referenced by tui_erase_source_content().

## ◆ NO_EMPTY_SOURCE_PROMPT

#define NO_EMPTY_SOURCE_PROMPT FALSE

Definition at line 76 of file tui-data.h.

## ◆ NO_HILITE

#define NO_HILITE FALSE

Definition at line 72 of file tui-data.h.

Referenced by tui_make_window(), and tui_unhighlight_win().

## ◆ NO_LOCATOR

#define NO_LOCATOR FALSE

Definition at line 74 of file tui-data.h.

## ◆ NO_REGS_STRING

#define NO_REGS_STRING "[ Register Values Unavailable ]"

Definition at line 60 of file tui-data.h.

Referenced by tui_show_registers().

## ◆ NO_SRC_STRING

#define NO_SRC_STRING "[ No Source Available ]"

Definition at line 58 of file tui-data.h.

Referenced by tui_erase_source_content().

## ◆ PC_PREFIX

#define PC_PREFIX "PC: "

Definition at line 84 of file tui-data.h.

Referenced by tui_make_status_line().

## ◆ PROC_PREFIX

#define PROC_PREFIX "In: "

Definition at line 82 of file tui-data.h.

Referenced by tui_make_status_line().

## ◆ SINGLE_KEY

#define SINGLE_KEY "(SingleKey)"

Definition at line 85 of file tui-data.h.

Referenced by tui_make_status_line().

## ◆ SRC_NAME

#define SRC_NAME "src"

Definition at line 63 of file tui-data.h.

Referenced by tui_win_name(), and window_name_completer().

## ◆ TUI_BP_BREAK_POS

#define TUI_BP_BREAK_POS 1

Definition at line 213 of file tui-data.h.

Referenced by tui_set_exec_info_content().

## ◆ TUI_BP_CONDITIONAL

#define TUI_BP_CONDITIONAL 0x08

Definition at line 208 of file tui-data.h.

Referenced by tui_update_breakpoint_info().

## ◆ TUI_BP_DISABLED

#define TUI_BP_DISABLED 0x02

Definition at line 206 of file tui-data.h.

Referenced by tui_set_exec_info_content(), and tui_update_breakpoint_info().

## ◆ TUI_BP_ENABLED

#define TUI_BP_ENABLED 0x01

Definition at line 205 of file tui-data.h.

Referenced by tui_set_exec_info_content(), and tui_update_breakpoint_info().

## ◆ TUI_BP_HARDWARE

#define TUI_BP_HARDWARE 0x10

Definition at line 209 of file tui-data.h.

Referenced by tui_set_exec_info_content(), and tui_update_breakpoint_info().

## ◆ TUI_BP_HIT

#define TUI_BP_HIT 0x04

Definition at line 207 of file tui-data.h.

Referenced by tui_set_exec_info_content(), and tui_update_breakpoint_info().

## ◆ TUI_BP_HIT_POS

#define TUI_BP_HIT_POS 0

Definition at line 212 of file tui-data.h.

Referenced by tui_set_exec_info_content().

## ◆ TUI_CMD_WIN

#define TUI_CMD_WIN tui_win_list[CMD_WIN]

Definition at line 301 of file tui-data.h.

Referenced by make_invisible_and_set_new_height(), make_visible_with_new_height(), new_height_ok(), parse_scrolling_args(), show_data(), show_source_disasm_command(), show_source_or_disasm_and_command(), tui_adjust_win_heights(), tui_default_win_height(), tui_default_win_viewport_height(), tui_dispatch_ctrl_char(), tui_enable(), tui_get_command_dimension(), tui_getc(), tui_mld_erase_entire_line(), tui_mld_flush(), tui_mld_getc(), tui_putc(), tui_puts(), tui_redisplay_readline(), tui_refresh_cmd_win(), tui_resize_all(), tui_rl_other_window(), tui_scroll_backward(), tui_scroll_forward(), tui_scroll_left(), tui_scroll_right(), tui_set_focus(), tui_set_layout(), tui_update_gdb_sizes(), tui_write(), and update_cmdwin_start_line().

## ◆ TUI_DATA_WIN

#define TUI_DATA_WIN tui_win_list[DATA_WIN]

Definition at line 300 of file tui-data.h.

Referenced by new_height_ok(), show_data(), tui_adjust_win_heights(), tui_check_data_values(), tui_check_register_values(), tui_delete_data_content_windows(), tui_display_all_data(), tui_display_data_from_line(), tui_display_reg_element_at_line(), tui_display_registers_from(), tui_display_registers_from_line(), tui_erase_data_content(), tui_first_data_item_displayed(), tui_first_reg_element_no_inline(), tui_last_regs_line_no(), tui_line_from_reg_element_no(), tui_refresh_data_win(), tui_reg_command(), tui_reg_next(), tui_reg_prev(), tui_resize_all(), tui_rl_other_window(), tui_scroll_backward(), tui_scroll_forward(), tui_set_focus(), tui_set_layout(), tui_show_register_group(), tui_show_registers(), and tui_vertical_data_scroll().

## ◆ TUI_DISASM_WIN

#define TUI_DISASM_WIN tui_win_list[DISASSEM_WIN]

Definition at line 299 of file tui-data.h.

Referenced by extract_display_start_addr(), new_height_ok(), show_layout(), show_source_disasm_command(), show_source_or_disasm_and_command(), tui_adjust_win_heights(), tui_resize_all(), tui_scroll_backward(), tui_scroll_forward(), tui_scroll_left(), tui_scroll_right(), tui_set_disassem_content(), tui_set_layout(), tui_set_tab_width_command(), tui_show_disassem(), tui_show_frame_info(), tui_update_breakpoint_info(), tui_update_source_window_as_is(), and tui_vertical_disassem_scroll().

## ◆ TUI_EXEC_POS

#define TUI_EXEC_POS 2

Definition at line 214 of file tui-data.h.

Referenced by tui_set_exec_info_content().

## ◆ TUI_EXECINFO_SIZE

#define TUI_EXECINFO_SIZE 4

Definition at line 215 of file tui-data.h.

Referenced by tui_set_exec_info_content().

## ◆ TUI_NULL_STR

#define TUI_NULL_STR ""

Definition at line 67 of file tui-data.h.

## ◆ TUI_SRC_WIN

#define TUI_SRC_WIN tui_win_list[SRC_WIN]

Definition at line 298 of file tui-data.h.

Referenced by extract_display_start_addr(), new_height_ok(), show_layout(), show_source_disasm_command(), show_source_or_disasm_and_command(), tui_adjust_win_heights(), tui_enable(), tui_resize_all(), tui_scroll_backward(), tui_scroll_forward(), tui_scroll_left(), tui_scroll_right(), tui_set_layout(), tui_set_source_content(), tui_set_tab_width_command(), tui_show_disassem(), tui_show_disassem_and_update_source(), tui_show_frame_info(), tui_show_symtab_source(), tui_source_is_displayed(), tui_update_breakpoint_info(), tui_update_source_window_as_is(), and tui_vertical_source_scroll().

## ◆ UNDEFINED_ITEM

#define UNDEFINED_ITEM -1

Definition at line 77 of file tui-data.h.

Referenced by init_content_element().

## ◆ WITH_LOCATOR

#define WITH_LOCATOR TRUE

Definition at line 73 of file tui-data.h.

## Typedef Documentation

## ◆ tui_exec_info_content

typedef char tui_exec_info_content[TUI_EXECINFO_SIZE]

Definition at line 217 of file tui-data.h.

## ◆ tui_win_content

typedef struct tui_win_element** tui_win_content

Definition at line 37 of file tui-data.h.

## Enumeration Type Documentation

## ◆ tui_data_type

enum tui_data_type

Enumerator
TUI_REGISTER |
TUI_SCALAR |
TUI_COMPLEX |
TUI_STRUCT |

Definition at line 125 of file tui-data.h.

## ◆ tui_layout_type

enum tui_layout_type

Enumerator
SRC_COMMAND |
DISASSEM_COMMAND |
SRC_DISASSEM_COMMAND |
SRC_DATA_COMMAND |
DISASSEM_DATA_COMMAND |
UNDEFINED_LAYOUT |

Definition at line 114 of file tui-data.h.

## ◆ tui_line_or_address_kind

enum tui_line_or_address_kind

Enumerator
LOA_LINE |
LOA_ADDRESS |

Definition at line 133 of file tui-data.h.

## ◆ tui_scroll_direction

enum tui_scroll_direction

Enumerator
FORWARD_SCROLL |
BACKWARD_SCROLL |
LEFT_SCROLL |
RIGHT_SCROLL |

Definition at line 96 of file tui-data.h.

## Function Documentation

## ◆ tui_add_content_elements()

int tui_add_content_elements | ( | struct tui_gen_win_info * | ,
|  | int |
| ) |  |

Definition at line 608 of file tui-data.c.

References tui_gen_win_info::content, tui_gen_win_info::content_size, init_content_element(), tui_alloc_content(), tui_gen_win_info::type, and XNEW.

Referenced by tui_show_register_group().

## ◆ tui_add_to_source_windows()

void tui_add_to_source_windows | ( | struct tui_win_info * |  | ) |

Definition at line 192 of file tui-data.c.

References tui_list::count, tui_list::list, and source_windows.

Referenced by show_data(), and show_layout().

## ◆ tui_alloc_content()

tui_win_content tui_alloc_content | ( | int | ,
|  | enum | tui_win_type
| ) |  |

Definition at line 573 of file tui-data.c.

References DATA_WIN, init_content_element(), and XNEWVEC.

Referenced by init_content_element(), tui_add_content_elements(), tui_alloc_source_buffer(), tui_set_exec_info_content(), tui_set_locator_info(), and tui_show_register_group().

## ◆ tui_alloc_generic_win_info()

struct tui_gen_win_info* tui_alloc_generic_win_info | ( | void |  | ) |

Definition at line 440 of file tui-data.c.

References tui_init_generic_part(), and XNEW.

Referenced by init_and_make_win().

## ◆ tui_alloc_win_info()

struct tui_win_info* tui_alloc_win_info | ( | enum | tui_win_type | ) |

Definition at line 557 of file tui-data.c.

References tui_win_info::generic, init_win_info(), tui_gen_win_info::type, type, and XNEW.

Referenced by init_and_make_win().

## ◆ tui_clear_source_windows()

void tui_clear_source_windows | ( | void |  | ) |

Definition at line 169 of file tui-data.c.

References tui_list::count, tui_list::list, and source_windows.

Referenced by show_layout().

## ◆ tui_clear_source_windows_detail()

void tui_clear_source_windows_detail | ( | void |  | ) |

Definition at line 179 of file tui-data.c.

References tui_list::count, tui_list::list, tui_clear_win_detail(), and tui_source_windows().

Referenced by tui_add_win_to_layout().

## ◆ tui_clear_win_detail()

void tui_clear_win_detail | ( | struct tui_win_info * |  | ) |

Definition at line 201 of file tui-data.c.

References tui_line_or_address::addr, CMD_WIN, tui_data_info::data_content, tui_data_info::data_content_count, tui_win_info::data_display_info, DATA_WIN, tui_win_info::detail, DISASSEM_WIN, tui_data_info::display_regs, tui_source_info::gdbarch, tui_win_info::generic, tui_gen_win_info::handle, tui_source_info::horizontal_offset, tui_line_or_address::loa, LOA_ADDRESS, tui_data_info::regs_column_count, tui_data_info::regs_content, tui_data_info::regs_content_count, tui_win_info::source_info, SRC_WIN, tui_source_info::start_line_or_addr, tui_gen_win_info::type, and tui_line_or_address::u.

Referenced by tui_clear_source_windows_detail().

## ◆ tui_current_layout()

enum tui_layout_type tui_current_layout | ( | void |  | ) |

Definition at line 293 of file tui-data.c.

References current_layout.

Referenced by extract_display_start_addr(), new_height_ok(), next_layout(), prev_layout(), show_layout(), show_source_disasm_command(), show_source_or_disasm_and_command(), tui_add_win_to_layout(), tui_adjust_win_heights(), tui_resize_all(), tui_rl_change_windows(), tui_rl_delete_other_windows(), tui_set_layout(), tui_set_layout_by_name(), tui_show_disassem(), tui_show_disassem_and_update_source(), tui_update_source_window_as_is(), tui_update_source_windows_with_addr(), and tui_update_source_windows_with_line().

## ◆ tui_default_tab_len()

int tui_default_tab_len | ( | void |  | ) |

Definition at line 141 of file tui-data.c.

References default_tab_len.

Referenced by tui_set_disassem_content(), and tui_set_source_content().

## ◆ tui_del_data_windows()

void tui_del_data_windows | ( | tui_win_content | ,
|  | int |
| ) |  |

Definition at line 783 of file tui-data.c.

References tui_gen_win_info::content, tui_which_element::data_window, tui_gen_win_info::handle, tui_gen_win_info::is_visible, tui_delete_win(), and tui_win_element::which_element.

Referenced by tui_del_window().

## ◆ tui_del_window()

void tui_del_window | ( | struct tui_win_info * |  | ) |

Definition at line 645 of file tui-data.c.

References tui_gen_win_info::content, tui_data_info::data_content, tui_data_info::data_content_count, tui_win_info::data_display_info, DATA_WIN, tui_win_info::detail, DISASSEM_WIN, tui_source_info::execution_info, tui_source_info::fullname, tui_win_info::generic, tui_gen_win_info::handle, tui_gen_win_info::is_visible, tui_data_info::regs_content, tui_data_info::regs_content_count, tui_win_info::source_info, SRC_WIN, tui_del_data_windows(), tui_delete_win(), tui_locator_win_info_ptr(), tui_gen_win_info::type, and xfree().

## ◆ tui_disassem_exec_info_win_ptr()

struct tui_gen_win_info* tui_disassem_exec_info_win_ptr | ( | void |  | ) |

Definition at line 244 of file tui-data.c.

References exec_info.

Referenced by make_source_or_disasm_window(), and tui_initialize_static_data().

## ◆ tui_free_all_source_wins_content()

void tui_free_all_source_wins_content | ( | void |  | ) |

Definition at line 751 of file tui-data.c.

References tui_win_info::detail, tui_source_info::execution_info, tui_win_info::generic, tui_win_info::source_info, tui_free_win_content(), and tui_source_windows().

Referenced by show_layout().

## ◆ tui_free_data_content()

void tui_free_data_content | ( | tui_win_content | ,
|  | int |
| ) |  |

Definition at line 807 of file tui-data.c.

References tui_gen_win_info::content, tui_gen_win_info::content_size, DATA_WIN, tui_which_element::data_window, free_content(), tui_gen_win_info::handle, tui_delete_win(), tui_free_win_content(), and tui_win_element::which_element.

Referenced by tui_free_window(), and tui_show_register_group().

## ◆ tui_free_win_content()

void tui_free_win_content | ( | struct tui_gen_win_info * |  | ) |

Definition at line 769 of file tui-data.c.

References tui_gen_win_info::content, tui_gen_win_info::content_size, free_content(), and tui_gen_win_info::type.

Referenced by make_visible_with_new_height(), tui_free_all_source_wins_content(), tui_free_data_content(), and tui_free_window().

## ◆ tui_free_window()

void tui_free_window | ( | struct tui_win_info * |  | ) |

Definition at line 695 of file tui-data.c.

References tui_gen_win_info::content, tui_gen_win_info::content_size, tui_data_info::data_content, tui_data_info::data_content_count, tui_win_info::data_display_info, DATA_WIN, tui_win_info::detail, DISASSEM_WIN, tui_data_info::display_regs, tui_source_info::execution_info, tui_source_info::fullname, tui_win_info::generic, tui_gen_win_info::handle, tui_data_info::regs_column_count, tui_data_info::regs_content, tui_data_info::regs_content_count, tui_win_info::source_info, SRC_WIN, tui_gen_win_info::title, tui_delete_win(), tui_free_data_content(), tui_free_win_content(), tui_gen_win_info::type, and xfree().

Referenced by tui_resize_all().

## ◆ tui_init_content_element()

void tui_init_content_element | ( | struct tui_win_element * | ,
|  | enum | tui_win_type
| ) |  |

## ◆ tui_init_generic_part()

void tui_init_generic_part | ( | struct tui_gen_win_info * |  | ) |

Definition at line 452 of file tui-data.c.

References tui_gen_win_info::content, tui_gen_win_info::content_in_use, tui_gen_win_info::content_size, tui_gen_win_info::handle, tui_gen_win_info::height, tui_gen_win_info::is_visible, tui_gen_win_info::last_visible_line, tui_gen_win_info::origin, tui_gen_win_info::title, tui_gen_win_info::viewport_height, tui_gen_win_info::width, tui_point::x, and tui_point::y.

Referenced by init_content_element(), init_win_info(), tui_alloc_generic_win_info(), and tui_initialize_static_data().

## ◆ tui_init_win_info()

void tui_init_win_info | ( | struct tui_win_info * |  | ) |

## ◆ tui_initialize_static_data()

void tui_initialize_static_data | ( | void |  | ) |

Definition at line 431 of file tui-data.c.

References tui_disassem_exec_info_win_ptr(), tui_init_generic_part(), tui_locator_win_info_ptr(), and tui_source_exec_info_win_ptr().

Referenced by tui_interp::init().

## ◆ tui_layout_def()

struct tui_layout_def* tui_layout_def | ( | void |  | ) |

Definition at line 117 of file tui-data.c.

References layout_def.

Referenced by tui_set_layout().

## ◆ tui_locator_win_info_ptr()

struct tui_gen_win_info* tui_locator_win_info_ptr | ( | void |  | ) |

Definition at line 253 of file tui-data.c.

References _locator.

Referenced by make_invisible_and_set_new_height(), make_visible_with_new_height(), show_data(), show_layout(), show_source_disasm_command(), show_source_or_disasm_and_command(), tui_adjust_win_heights(), tui_del_window(), tui_get_begin_asm_address(), tui_initialize_static_data(), tui_refresh_all(), tui_resize_all(), tui_set_disassem_content(), tui_set_locator_fullname(), tui_set_locator_info(), tui_set_source_content(), tui_show_frame_info(), tui_show_locator_content(), and tui_source_is_displayed().

## ◆ tui_next_win()

struct tui_win_info* tui_next_win | ( | struct tui_win_info * |  | ) |

Definition at line 315 of file tui-data.c.

References CMD_WIN, tui_win_info::generic, SRC_WIN, tui_win_list, tui_gen_win_info::type, and type.

Referenced by tui_rl_other_window(), and tui_set_focus().

## ◆ tui_partial_win_by_name()

struct tui_win_info* tui_partial_win_by_name | ( | const char * |  | ) |

Definition at line 374 of file tui-data.c.

References MAX_MAJOR_WINDOWS, name, startswith(), tui_win_list, and tui_win_name().

Referenced by parse_scrolling_args(), tui_set_focus(), and tui_set_win_height().

## ◆ tui_prev_win()

struct tui_win_info* tui_prev_win | ( | struct tui_win_info * |  | ) |

Definition at line 345 of file tui-data.c.

References CMD_WIN, tui_win_info::generic, SRC_WIN, tui_win_list, tui_gen_win_info::type, and type.

Referenced by tui_set_focus().

## ◆ tui_set_current_layout_to()

void tui_set_current_layout_to | ( | enum | tui_layout_type | ) |

Definition at line 301 of file tui-data.c.

References current_layout.

Referenced by show_data(), show_source_disasm_command(), and show_source_or_disasm_and_command().

## ◆ tui_set_default_tab_len()

void tui_set_default_tab_len | ( | int |  | ) |

Definition at line 149 of file tui-data.c.

References default_tab_len.

Referenced by tui_set_tab_width_command().

## ◆ tui_set_term_height_to()

void tui_set_term_height_to | ( | int |  | ) |

Definition at line 269 of file tui-data.c.

References term_height.

Referenced by tui_enable(), and tui_resize_all().

## ◆ tui_set_term_width_to()

void tui_set_term_width_to | ( | int |  | ) |

Definition at line 285 of file tui-data.c.

References term_width.

Referenced by tui_enable(), and tui_resize_all().

## ◆ tui_set_win_highlight()

void tui_set_win_highlight | ( | struct tui_win_info * | win_info,
|  | int | highlight
| ) |  |

Definition at line 88 of file tui-data.c.

References tui_win_info::is_highlighted.

Referenced by tui_highlight_win(), and tui_unhighlight_win().

## ◆ tui_set_win_resized_to()

void tui_set_win_resized_to | ( | int |  | ) |

Definition at line 109 of file tui-data.c.

References win_resized.

Referenced by tui_enable().

## ◆ tui_set_win_with_focus()

void tui_set_win_with_focus | ( | struct tui_win_info * |  | ) |

Definition at line 133 of file tui-data.c.

References win_with_focus.

Referenced by tui_set_win_focus_to().

## ◆ tui_source_exec_info_win_ptr()

struct tui_gen_win_info* tui_source_exec_info_win_ptr | ( | void |  | ) |

Definition at line 236 of file tui-data.c.

References exec_info.

Referenced by make_source_or_disasm_window(), and tui_initialize_static_data().

## ◆ tui_source_windows()

struct tui_list* tui_source_windows | ( | void |  | ) |

Definition at line 159 of file tui-data.c.

References source_windows.

Referenced by new_height_ok(), parse_scrolling_args(), tui_adjust_win_heights(), tui_clear_source_windows_detail(), tui_display_main(), tui_free_all_source_wins_content(), tui_resize_all(), tui_show_frame_info(), tui_update_all_breakpoint_info(), and tui_update_source_windows_with_addr().

## ◆ tui_term_height()

int tui_term_height | ( | void |  | ) |

Definition at line 261 of file tui-data.c.

References term_height.

Referenced by new_height_ok(), show_data(), show_source_disasm_command(), show_source_or_disasm_and_command(), tui_default_win_height(), tui_resize_all(), and tui_update_gdb_sizes().

## ◆ tui_term_width()

int tui_term_width | ( | void |  | ) |

Definition at line 277 of file tui-data.c.

References term_width.

Referenced by make_command_window(), make_data_window(), make_source_or_disasm_window(), show_data(), show_source_disasm_command(), show_source_or_disasm_and_command(), tui_make_status_line(), tui_resize_all(), and tui_update_gdb_sizes().

## ◆ tui_win_has_locator()

int tui_win_has_locator | ( | struct tui_win_info * | win_info | ) |

Definition at line 81 of file tui-data.c.

References tui_win_info::detail, tui_source_info::has_locator, and tui_win_info::source_info.

Referenced by make_invisible_and_set_new_height(), and make_visible_with_new_height().

## ◆ tui_win_is_auxillary()

int tui_win_is_auxillary | ( | enum tui_win_type | win_type | ) |

Definition at line 75 of file tui-data.c.

References MAX_MAJOR_WINDOWS.

Referenced by init_and_make_win(), and make_visible().

## ◆ tui_win_is_source_type()

int tui_win_is_source_type | ( | enum tui_win_type | win_type | ) |

Definition at line 69 of file tui-data.c.

References DISASSEM_WIN, and SRC_WIN.

Referenced by make_all_visible().

## ◆ tui_win_name()

const char* tui_win_name | ( | const struct tui_gen_win_info * |  | ) |

Definition at line 403 of file tui-data.c.

References CMD_NAME, CMD_WIN, DATA_NAME, DATA_WIN, DISASSEM_NAME, DISASSEM_WIN, name, SRC_NAME, SRC_WIN, and tui_gen_win_info::type.

Referenced by tui_all_windows_info(), tui_partial_win_by_name(), tui_set_focus(), and window_name_completer().

## ◆ tui_win_resized()

int tui_win_resized | ( | void |  | ) |

Definition at line 101 of file tui-data.c.

References win_resized.

Referenced by tui_enable().

## ◆ tui_win_with_focus()

struct tui_win_info* tui_win_with_focus | ( | void |  | ) |

Definition at line 125 of file tui-data.c.

References win_with_focus.

Referenced by parse_scrolling_args(), tui_all_windows_info(), tui_dispatch_ctrl_char(), tui_resize_all(), tui_rl_other_window(), tui_set_focus(), tui_set_layout(), tui_set_win_focus_to(), tui_show_disassem(), and tui_update_source_window_as_is().

## Variable Documentation

## ◆ tui_win_list

struct tui_win_info* tui_win_list[MAX_MAJOR_WINDOWS]

Definition at line 32 of file tui-data.c.

Referenced by make_all_visible(), show_data(), show_layout(), tui_adjust_win_heights(), tui_all_windows_info(), tui_default_win_height(), tui_default_win_viewport_height(), tui_is_window_visible(), tui_next_win(), tui_partial_win_by_name(), tui_prev_win(), tui_refresh_all_win(), tui_rehighlight_all(), tui_resize_all(), tui_set_tab_width_command(), and window_name_completer().