GDB (xrefs)
|
#include "defs.h"
#include "gdbcmd.h"
#include "ui-out.h"
#include "gdbsupport/event-loop.h"
#include "event-top.h"
#include "interps.h"
#include "completer.h"
#include "top.h"
#include "main.h"
#include "gdbsupport/buildargv.h"
Go to the source code of this file.
Classes | |
struct | ui_interp_info |
struct | interp_factory |
Variables | |
static std::vector< interp_factory > | interpreter_factories |
void _initialize_interpreter | ( | ) |
Definition at line 451 of file interps.c.
Referenced by initialize_all_files().
void clear_interpreter_hooks | ( | void | ) |
Definition at line 350 of file interps.c.
References deprecated_call_command_hook, deprecated_context_hook, deprecated_error_begin_hook, deprecated_print_frame_info_listing_hook, deprecated_query_hook, deprecated_readline_begin_hook, deprecated_readline_end_hook, deprecated_readline_hook, and deprecated_warning_hook.
Referenced by interp_set().
struct interp * command_interp | ( | void | ) |
Definition at line 304 of file interps.c.
References ui_interp_info::command_interpreter, ui_interp_info::current_interpreter, and get_current_interp_info().
Referenced by call_function_by_hand_dummy(), captured_mi_execute_command(), change_line_handler(), find_mi_interp(), finish_command(), step_1(), until_break_command(), and until_next_command().
int current_interp_named_p | ( | const char * | interp_name | ) |
Definition at line 282 of file interps.c.
References ui_interp_info::current_interpreter, get_current_interp_info(), and interp::name().
Referenced by captured_main_1(), captured_mi_execute_command(), and read_command_lines().
void current_interp_set_logging | ( | ui_file_up | logfile, |
bool | logging_redirect, | ||
bool | debug_redirect | ||
) |
Definition at line 258 of file interps.c.
References ui_interp_info::current_interpreter, debug_redirect, get_current_interp_info(), logging_redirect, and interp::set_logging().
Referenced by handle_redirections(), and pop_output_files().
struct interp * current_interpreter | ( | void | ) |
Definition at line 441 of file interps.c.
References ui_interp_info::current_interpreter, current_ui, and get_interp_info().
Referenced by mi_cmd_gdb_exit(), mi_load_progress(), and mi_print_exception().
|
static |
Definition at line 71 of file interps.c.
References current_ui, and get_interp_info().
Referenced by command_interp(), current_interp_named_p(), current_interp_set_logging(), interp_exec(), interp_set(), interpreter_exec_cmd(), scoped_restore_interp::set_interp(), and top_level_interpreter().
|
static |
Definition at line 60 of file interps.c.
References ui::interp_info.
Referenced by current_interpreter(), get_current_interp_info(), interp_add(), and interp_lookup_existing().
Definition at line 128 of file interps.c.
References get_interp_info(), ui_interp_info::interp_list, interp_lookup_existing(), interp::name(), and interp::next.
Referenced by interp_lookup().
struct gdb_exception interp_exec | ( | struct interp * | interp, |
const char * | command_str | ||
) |
Definition at line 336 of file interps.c.
References ui_interp_info::command_interpreter, interp::exec(), and get_current_interp_info().
Referenced by interpreter_exec_cmd(), and mi_cmd_interpreter_exec().
void interp_factory_register | ( | const char * | name, |
interp_factory_func | func | ||
) |
Definition at line 222 of file interps.c.
References interp_add(), interp_lookup_existing(), interpreter_factories, and name.
Referenced by execute_control_command(), interpreter_exec_cmd(), mi_cmd_interpreter_exec(), mi_on_normal_stop_1(), scoped_restore_interp::set_interp(), and set_top_level_interpreter().
Definition at line 203 of file interps.c.
References get_interp_info(), ui_interp_info::interp_list, name, interp::name(), and interp::next.
Referenced by interp_add(), and interp_lookup().
void interp_pre_command_loop | ( | struct interp * | interp | ) |
Definition at line 317 of file interps.c.
References interp::pre_command_loop().
Referenced by captured_command_loop(), and new_ui_command().
|
static |
Definition at line 150 of file interps.c.
References clear_interpreter_hooks(), ui_interp_info::current_interpreter, current_uiout, get_current_interp_info(), interp::init(), interp::inited, interp::interp_ui_out(), interpreter_p, interp::name(), interp::resume(), interp::suspend(), and ui_interp_info::top_level_interpreter.
Referenced by interpreter_exec_cmd(), and set_top_level_interpreter().
int interp_supports_command_editing | ( | struct interp * | interp | ) |
Definition at line 327 of file interps.c.
References interp::supports_command_editing().
Referenced by change_line_handler().
void interpreter_completer | ( | struct cmd_list_element * | ignore, |
completion_tracker & | tracker, | ||
const char * | text, | ||
const char * | word | ||
) |
Definition at line 414 of file interps.c.
References completion_tracker::add_completion(), interpreter_factories, make_completion_match_str(), and interp::name().
Referenced by init_main().
|
static |
Definition at line 365 of file interps.c.
References ui_interp_info::current_interpreter, current_ui, error_no_arg(), gdb_stderr, gdb_stdlog, gdb_stdout, gdb_stdtarg, gdb_stdtargerr, get_current_interp_info(), interp_exec(), interp_lookup(), and interp_set().
void set_top_level_interpreter | ( | const char * | name | ) |
Definition at line 246 of file interps.c.
References current_ui, interp_lookup(), interp_set(), and name.
Referenced by captured_main_1(), and new_ui_command().
struct interp * top_level_interpreter | ( | void | ) |
Definition at line 431 of file interps.c.
References get_current_interp_info(), and ui_interp_info::top_level_interpreter.
Referenced by captured_command_loop(), change_line_handler(), cli_base_on_command_error(), cli_base_on_end_stepping_range(), cli_base_on_exited(), cli_base_on_no_history(), cli_base_on_normal_stop(), cli_base_on_signal_exited(), cli_base_on_signal_received(), cli_base_on_sync_execution_done(), cli_base_on_user_selected_context_changed(), decode_line_full(), find_mi_interp(), info_sharedlibrary_command(), mi_breakpoint_created(), mi_breakpoint_deleted(), mi_breakpoint_modified(), mi_command_param_changed(), mi_execute_command_input_handler(), mi_inferior_added(), mi_inferior_appeared(), mi_inferior_exit(), mi_inferior_removed(), mi_memory_changed(), mi_new_thread(), mi_on_command_error(), mi_on_normal_stop(), mi_on_normal_stop_1(), mi_on_resume(), mi_on_sync_execution_done(), mi_output_running(), mi_record_changed(), mi_solib_loaded(), mi_solib_unloaded(), mi_thread_exit(), mi_traceframe_changed(), mi_tsv_created(), mi_tsv_deleted(), mi_tsv_modified(), mi_user_selected_context_changed(), new_ui_command(), pager_file::puts(), and tui_enable().
|
static |
Definition at line 107 of file interps.c.
Referenced by interp_factory_register(), interp_lookup(), and interpreter_completer().