GDB (xrefs)

Classes | Functions | Variables
tui-interp.c File Reference
`#include "defs.h"`
`#include "cli/cli-interp.h"`
`#include "interps.h"`
`#include "top.h"`
`#include "event-top.h"`
`#include "event-loop.h"`
`#include "ui-out.h"`
`#include "cli-out.h"`
`#include "tui/tui-data.h"`
`#include "readline/readline.h"`
`#include "tui/tui-win.h"`
`#include "tui/tui.h"`
`#include "tui/tui-io.h"`
`#include "infrun.h"`
`#include "observer.h"`
`#include "gdbthread.h"`

Go to the source code of this file.

## Classes
class | tui_interp

## Functions
static tui_interp * | as_tui_interp (struct interp *interp)
static void | tui_exit (void)
static void | tui_on_normal_stop (struct bpstats *bs, int print_frame)
static void | tui_on_signal_received (enum gdb_signal siggnal)
static void | tui_on_end_stepping_range (void)
static void | tui_on_signal_exited (enum gdb_signal siggnal)
static void | tui_on_exited (int exitstatus)
static void | tui_on_no_history (void)
static void | tui_on_sync_execution_done (void)
static void | tui_on_command_error (void)
static void | tui_on_user_selected_context_changed (user_selected_what selection)
static struct interp * | tui_interp_factory (const char *name)
void | _initialize_tui_interp (void)

## Variables
static int | tui_start_enabled = 0

## Function Documentation

## ◆ _initialize_tui_interp()

void _initialize_tui_interp | ( | void |  | ) |

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

References INTERP_CONSOLE, interp_factory_register(), INTERP_TUI, interpreter_p, observer_attach_command_error(), observer_attach_end_stepping_range(), observer_attach_exited(), observer_attach_no_history(), observer_attach_normal_stop(), observer_attach_signal_exited(), observer_attach_signal_received(), observer_attach_sync_execution_done(), observer_attach_user_selected_context_changed(), tui_interp_factory(), tui_on_command_error(), tui_on_end_stepping_range(), tui_on_exited(), tui_on_no_history(), tui_on_normal_stop(), tui_on_signal_exited(), tui_on_signal_received(), tui_on_sync_execution_done(), tui_on_user_selected_context_changed(), tui_start_enabled, and xfree().

## ◆ as_tui_interp()

static tui_interp* as_tui_interp | ( | struct interp * | interp | ) |
| static

Definition at line 59 of file tui-interp.c.

References interp_name(), and INTERP_TUI.

Referenced by tui_on_command_error(), tui_on_end_stepping_range(), tui_on_exited(), tui_on_no_history(), tui_on_normal_stop(), tui_on_signal_exited(), tui_on_signal_received(), tui_on_sync_execution_done(), and tui_on_user_selected_context_changed().

## ◆ tui_exit()

static void tui_exit | ( | void |  | ) |
| static

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

References tui_disable().

Referenced by tui_interp::init().

## ◆ tui_interp_factory()

static struct interp* tui_interp_factory | ( | const char * | name | ) |
| static

Definition at line 309 of file tui-interp.c.

References name.

Referenced by _initialize_tui_interp().

## ◆ tui_on_command_error()

static void tui_on_command_error | ( | void |  | ) |
| static

Definition at line 199 of file tui-interp.c.

References as_tui_interp(), display_gdb_prompt(), and top_level_interpreter().

Referenced by _initialize_tui_interp().

## ◆ tui_on_end_stepping_range()

static void tui_on_end_stepping_range | ( | void |  | ) |
| static

Definition at line 122 of file tui-interp.c.

References as_tui_interp(), interp::interp_ui_out(), print_end_stepping_range_reason(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().

Referenced by _initialize_tui_interp().

## ◆ tui_on_exited()

static void tui_on_exited | ( | int | exitstatus | ) |
| static

Definition at line 154 of file tui-interp.c.

References as_tui_interp(), interp::interp_ui_out(), print_exited_reason(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().

Referenced by _initialize_tui_interp().

## ◆ tui_on_no_history()

static void tui_on_no_history | ( | void |  | ) |
| static

Definition at line 170 of file tui-interp.c.

References as_tui_interp(), interp::interp_ui_out(), print_no_history_reason(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().

Referenced by _initialize_tui_interp().

## ◆ tui_on_normal_stop()

static void tui_on_normal_stop | ( | struct bpstats * | bs,
|  | int | print_frame
| ) |  |
| static

Definition at line 83 of file tui-interp.c.

References as_tui_interp(), inferior_thread(), interp::interp_ui_out(), print_frame(), print_stop_event(), should_print_stop_to_console(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().

Referenced by _initialize_tui_interp().

## ◆ tui_on_signal_exited()

static void tui_on_signal_exited | ( | enum gdb_signal | siggnal | ) |
| static

Definition at line 138 of file tui-interp.c.

References as_tui_interp(), interp::interp_ui_out(), print_signal_exited_reason(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().

Referenced by _initialize_tui_interp().

## ◆ tui_on_signal_received()

static void tui_on_signal_received | ( | enum gdb_signal | siggnal | ) |
| static

Definition at line 106 of file tui-interp.c.

References as_tui_interp(), interp::interp_ui_out(), print_signal_received_reason(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().

Referenced by _initialize_tui_interp().

## ◆ tui_on_sync_execution_done()

static void tui_on_sync_execution_done | ( | void |  | ) |
| static

Definition at line 186 of file tui-interp.c.

References as_tui_interp(), display_gdb_prompt(), and top_level_interpreter().

Referenced by _initialize_tui_interp().

## ◆ tui_on_user_selected_context_changed()

static void tui_on_user_selected_context_changed | ( | user_selected_what | selection | ) |
| static

Definition at line 212 of file tui-interp.c.

References as_tui_interp(), find_thread_ptid(), inferior_ptid, interp::interp_ui_out(), print_selected_inferior(), print_selected_thread_frame(), SWITCH_THRU_ALL_UIS, top_level_interpreter(), cli_suppress_notification::user_selected_context, USER_SELECTED_FRAME, USER_SELECTED_INFERIOR, and USER_SELECTED_THREAD.

Referenced by _initialize_tui_interp().

## Variable Documentation

## ◆ tui_start_enabled

int tui_start_enabled = 0
| static

Definition at line 39 of file tui-interp.c.

Referenced by _initialize_tui_interp(), tui_interp::resume(), and tui_interp::suspend().