GDB (xrefs)

Public Member Functions | Public Attributes | List of all members
ui Struct Reference

`#include "top.h"`

## Public Member Functions
| ui (FILE *instream, FILE *outstream, FILE *errstream)
| ~ui ()
| DISABLE_COPY_AND_ASSIGN (ui)

## Public Attributes
struct ui * | next
int | num
struct buffer | line_buffer
void(* | call_readline )(gdb_client_data)
void(* | input_handler )(char *)
int | command_editing
struct ui_interp_info * | interp_info
int | async
int | secondary_prompt_depth
FILE * | stdin_stream
FILE * | instream
FILE * | outstream
FILE * | errstream
int | input_fd
int | input_interactive_p
enum prompt_state | prompt_state
struct ui_file * | m_gdb_stdout
struct ui_file * | m_gdb_stdin
struct ui_file * | m_gdb_stderr
struct ui_file * | m_gdb_stdlog
struct ui_out * | m_current_uiout

## Detailed Description

Definition at line 56 of file top.h.

## Constructor & Destructor Documentation

## ◆ ui()

ui::ui | ( | FILE * | instream,
|  | FILE * | outstream,
|  | FILE * | errstream
| ) |  |

Definition at line 251 of file top.c.

References buffer_init(), line_buffer, next, and ui_list.

Referenced by handle_no_resumed(), new_ui_command(), quit_force(), stdin_event_handler(), and ~ui().

## ◆ ~ui()

ui::~ui | ( |  | ) |

Definition at line 287 of file top.c.

References gdb_assert, m_gdb_stderr, m_gdb_stdin, m_gdb_stdout, next, ui(), and ui_list.

## Member Function Documentation

## ◆ DISABLE_COPY_AND_ASSIGN()

ui::DISABLE_COPY_AND_ASSIGN | ( | ui |  | ) |

## Member Data Documentation

## ◆ async

int ui::async

Definition at line 102 of file top.h.

Referenced by bpstat_do_actions_1(), captured_command_loop(), check_curr_ui_sync_execution_done(), compile_code_command(), compile_file_command(), compile_print_command(), execute_command_to_string(), execute_gdb_command(), execute_user_command(), if_command(), inferior_event_handler(), ioscm_with_output_to_port_worker(), maybe_wait_sync_command_done(), new_ui_command(), python_command(), python_interactive_command(), reinstall_readline_callback_handler_cleanup(), run_inferior_call(), script_from_file(), and while_command().

## ◆ call_readline

void(* ui::call_readline) (gdb_client_data)

Definition at line 80 of file top.h.

Referenced by change_line_handler(), gdb_setup_readline(), mi_interp::resume(), and stdin_event_handler().

## ◆ command_editing

int ui::command_editing

Definition at line 89 of file top.h.

Referenced by change_line_handler(), display_gdb_prompt(), gdb_disable_readline(), gdb_readline_wrapper(), gdb_readline_wrapper_cleanup(), gdb_readline_wrapper_line(), gdb_setup_readline(), reinstall_readline_callback_handler_cleanup(), set_editing(), show_editing(), and tui_getc().

## ◆ errstream

FILE* ui::errstream

Definition at line 119 of file top.h.

Referenced by gdb_setup_readline().

## ◆ input_fd

int ui::input_fd

Definition at line 123 of file top.h.

Referenced by async_disable_stdin(), gdb_disable_readline(), run_inferior_call(), stdin_event_handler(), ui_register_input_event_handler(), and ui_unregister_input_event_handler().

## ◆ input_handler

void(* ui::input_handler) (char *)

Definition at line 84 of file top.h.

Referenced by gdb_readline_no_editing_callback(), gdb_readline_wrapper(), gdb_readline_wrapper_cleanup(), gdb_rl_callback_handler(), cli_interp::resume(), tui_interp::resume(), and mi_interp::resume().

## ◆ input_interactive_p

int ui::input_interactive_p

Definition at line 128 of file top.h.

Referenced by input_interactive_p().

## ◆ instream

FILE* ui::instream

Definition at line 115 of file top.h.

Referenced by ATTRIBUTE_PRINTF(), captured_command_loop(), command_handler(), command_line_input(), dont_repeat(), execute_user_command(), gdb_readline_no_editing(), gdb_readline_no_editing_callback(), gdb_setup_readline(), handle_line_of_input(), mi_execute_command_wrapper(), python_interactive_command(), read_command_file(), and read_next_line().

## ◆ interp_info

struct ui_interp_info* ui::interp_info

Definition at line 92 of file top.h.

Referenced by get_interp_info().

## ◆ line_buffer

struct buffer ui::line_buffer

Definition at line 72 of file top.h.

Referenced by command_line_handler(), gdb_readline_no_editing(), gdb_readline_no_editing_callback(), get_command_line_buffer(), and ui().

## ◆ m_current_uiout

struct ui_out* ui::m_current_uiout

Definition at line 151 of file top.h.

## ◆ m_gdb_stderr

struct ui_file* ui::m_gdb_stderr

Definition at line 143 of file top.h.

Referenced by gdb_flush_out_err(), and ~ui().

## ◆ m_gdb_stdin

struct ui_file* ui::m_gdb_stdin

Definition at line 141 of file top.h.

Referenced by ~ui().

## ◆ m_gdb_stdlog

struct ui_file* ui::m_gdb_stdlog

Definition at line 148 of file top.h.

## ◆ m_gdb_stdout

struct ui_file* ui::m_gdb_stdout

Definition at line 139 of file top.h.

Referenced by gdb_flush_out_err(), and ~ui().

## ◆ next

struct ui* ui::next

Definition at line 65 of file top.h.

Referenced by gdb.FrameIterator.FrameIterator::__next__(), switch_thru_all_uis::next(), ui(), and ~ui().

## ◆ num

int ui::num

Definition at line 68 of file top.h.

Referenced by show_commands().

## ◆ outstream

FILE* ui::outstream

Definition at line 117 of file top.h.

Referenced by gdb_setup_readline(), and print_flush().

## ◆ prompt_state

enum prompt_state ui::prompt_state

Definition at line 131 of file top.h.

Referenced by all_uis_on_sync_execution_starting(), annotate_breakpoints_invalid(), annotate_frames_invalid(), async_disable_stdin(), async_enable_stdin(), call_thread_fsm_should_stop(), captured_command_loop(), catch_command_errors(), check_curr_ui_sync_execution_done(), command_line_handler(), continue_1(), display_gdb_prompt(), display_mi_prompt(), execute_command(), follow_fork_inferior(), handle_no_resumed(), target_terminal::inferior(), inferior_event_handler(), maybe_wait_sync_command_done(), mi_execute_command(), mi_execute_command_input_handler(), mi_on_resume_1(), normal_stop(), reinstall_readline_callback_handler_cleanup(), run_inferior_call(), scoped_input_handler::scoped_input_handler(), start_event_loop(), and wait_sync_command_done().

## ◆ secondary_prompt_depth

int ui::secondary_prompt_depth

Definition at line 106 of file top.h.

Referenced by gdb_in_secondary_prompt_p(), gdb_readline_wrapper(), and gdb_readline_wrapper_cleanup().

## ◆ stdin_stream

FILE* ui::stdin_stream

Definition at line 109 of file top.h.

Referenced by ATTRIBUTE_PRINTF(), captured_command_loop(), command_handler(), command_line_input(), dont_repeat(), gdb_readline_no_editing_callback(), handle_line_of_input(), mi_execute_command_wrapper(), and read_next_line().

The documentation for this struct was generated from the following files:

- /tmp/gdb-8.1/gdb/top.h
- /tmp/gdb-8.1/gdb/top.c