GDB (xrefs)
|
#include "defs.h"
#include "target.h"
#include "event-loop.h"
#include "event-top.h"
#include "command.h"
#include "top.h"
#include "tui/tui.h"
#include "tui/tui-data.h"
#include "tui/tui-io.h"
#include "tui/tui-command.h"
#include "tui/tui-win.h"
#include "tui/tui-wingeneral.h"
#include "tui/tui-file.h"
#include "ui-out.h"
#include "cli-out.h"
#include <fcntl.h>
#include <signal.h>
#include "filestuff.h"
#include "completer.h"
#include "gdb_curses.h"
#include "readline/readline.h"
Go to the source code of this file.
Macros | |
#define | CTRL_CHAR(c) ((c) < control_character_threshold && (((c) & 0x80) == 0)) |
#define | TUI_USE_PIPE_FOR_READLINE |
Variables | |
static struct ui_file * | tui_stdout |
static struct ui_file * | tui_stderr |
struct ui_out * | tui_out |
static struct ui_file * | tui_old_stdout |
static struct ui_file * | tui_old_stderr |
struct ui_out * | tui_old_uiout |
static rl_getc_func_t * | tui_old_rl_getc_function |
static rl_voidfunc_t * | tui_old_rl_redisplay_function |
static rl_vintfunc_t * | tui_old_rl_prep_terminal |
static rl_voidfunc_t * | tui_old_rl_deprep_terminal |
static rl_compdisp_func_t * | tui_old_rl_display_matches_hook |
static int | tui_old_rl_echoing_p |
static FILE * | tui_rl_outstream |
static FILE * | tui_old_rl_outstream |
static int | tui_readline_pipe [2] |
static char * | tui_rl_saved_prompt |
#define CTRL_CHAR | ( | c | ) | ((c) < control_character_threshold && (((c) & 0x80) == 0)) |
Definition at line 68 of file tui-io.c.
Referenced by gdb_fnprint(), gdb_fnwidth(), and tui_redisplay_readline().
Definition at line 49 of file tui-io.c.
Referenced by tui_getc().
|
static |
Definition at line 314 of file tui-io.c.
Referenced by tui_setup_io().
Definition at line 669 of file tui-io.c.
References string, and xmalloc().
Referenced by tui_register_format().
int tui_getc | ( | FILE * | fp | ) |
Definition at line 579 of file tui-io.c.
References async_command_editing_p, call_stdin_event_handler_again_p, key_is_start_sequence(), TUI_CMD_WIN, tui_dispatch_ctrl_char(), and tui_readline_output().
Referenced by tui_setup_io().
void tui_initialize_io | ( | void | ) |
Definition at line 536 of file tui-io.c.
References _, add_file_handler(), cli_out_new(), error(), gdb_pipe_cloexec(), gdb_stdout, tui_fileopen(), tui_out_new(), tui_readline_output(), tui_readline_pipe, and tui_rl_outstream.
Referenced by tui_init().
|
static |
Definition at line 383 of file tui-io.c.
Referenced by tui_rl_display_match_list().
|
static |
Definition at line 339 of file tui-io.c.
References tui_putc().
Referenced by tui_rl_display_match_list().
|
static |
Definition at line 371 of file tui-io.c.
References TUI_CMD_WIN.
Referenced by tui_rl_display_match_list().
|
static |
Definition at line 363 of file tui-io.c.
References TUI_CMD_WIN.
Referenced by tui_rl_display_match_list().
|
static |
|
static |
Definition at line 347 of file tui-io.c.
References tui_putc().
Referenced by tui_rl_display_match_list().
|
static |
Definition at line 355 of file tui-io.c.
References tui_puts().
Referenced by tui_rl_display_match_list().
|
static |
Definition at line 404 of file tui-io.c.
References tui_mld_getc().
Referenced by tui_rl_display_match_list().
|
static |
Definition at line 302 of file tui-io.c.
References tui_rl_saved_prompt, and xfree().
Referenced by tui_setup_io().
|
static |
Definition at line 140 of file tui-io.c.
References tui_puts().
Referenced by tui_mld_crlf(), and tui_mld_putch().
void tui_puts | ( | const char * | string | ) |
Definition at line 154 of file tui-io.c.
References line, and TUI_CMD_WIN.
Referenced by tui_file_fputs(), tui_mld_puts(), tui_putc(), and tui_readline_output().
|
static |
Definition at line 322 of file tui-io.c.
References read(), size, tui_active, tui_puts(), and tui_readline_pipe.
Referenced by tui_getc(), and tui_initialize_io().
void tui_redisplay_readline | ( | void | ) |
Definition at line 200 of file tui-io.c.
References CTRL_CHAR, immediate_quit, line, TUI_CMD_WIN, tui_current_key_mode, TUI_ONE_COMMAND_MODE, tui_rl_saved_prompt, tui_set_key_mode(), and TUI_SINGLE_KEY_MODE.
Referenced by tui_rl_startup_hook(), and tui_setup_io().
Definition at line 420 of file tui-io.c.
References match_list_displayer::beep, match_list_displayer::crlf, match_list_displayer::erase_entire_line, match_list_displayer::flush, gdb_display_match_list(), match_list_displayer::height, match_list_displayer::putch, match_list_displayer::puts, match_list_displayer::read_key, tui_mld_beep(), tui_mld_crlf(), tui_mld_erase_entire_line(), tui_mld_flush(), tui_mld_putch(), tui_mld_puts(), tui_mld_read_key(), and match_list_displayer::width.
Referenced by tui_setup_io().
void tui_setup_io | ( | int | mode | ) |
Definition at line 445 of file tui-io.c.
References current_uiout, gdb_stderr, gdb_stdlog, gdb_stdout, gdb_stdtarg, gdb_stdtargerr, tui_deprep_terminal(), tui_getc(), tui_old_rl_deprep_terminal, tui_old_rl_display_matches_hook, tui_old_rl_echoing_p, tui_old_rl_getc_function, tui_old_rl_outstream, tui_old_rl_prep_terminal, tui_old_rl_redisplay_function, tui_old_stderr, tui_old_stdout, tui_old_uiout, tui_out, tui_prep_terminal(), tui_redisplay_readline(), tui_rl_display_match_list(), tui_rl_outstream, tui_stderr, and tui_stdout.
Referenced by tui_disable(), and tui_enable().
|
static |
Definition at line 123 of file tui-io.c.
Referenced by tui_setup_io().
|
static |
Definition at line 124 of file tui-io.c.
Referenced by tui_setup_io().
|
static |
Definition at line 125 of file tui-io.c.
Referenced by tui_setup_io().
|
static |
Definition at line 120 of file tui-io.c.
Referenced by tui_setup_io().
|
static |
Definition at line 130 of file tui-io.c.
Referenced by tui_setup_io().
|
static |
Definition at line 122 of file tui-io.c.
Referenced by tui_setup_io().
|
static |
Definition at line 121 of file tui-io.c.
Referenced by tui_setup_io().
|
static |
Definition at line 116 of file tui-io.c.
Referenced by tui_setup_io().
|
static |
Definition at line 115 of file tui-io.c.
Referenced by tui_setup_io().
struct ui_out* tui_old_uiout |
Definition at line 117 of file tui-io.c.
Referenced by tui_resume(), tui_setup_io(), and tui_ui_out().
struct ui_out* tui_out |
Definition at line 112 of file tui-io.c.
Referenced by tui_setup_io(), and tui_ui_out().
|
static |
Definition at line 132 of file tui-io.c.
Referenced by tui_initialize_io(), and tui_readline_output().
|
static |
Definition at line 129 of file tui-io.c.
Referenced by tui_initialize_io(), and tui_setup_io().
|
static |
Definition at line 137 of file tui-io.c.
Referenced by tui_prep_terminal(), and tui_redisplay_readline().
|
static |
Definition at line 111 of file tui-io.c.
Referenced by tui_setup_io().
|
static |
Definition at line 110 of file tui-io.c.
Referenced by tui_setup_io().