|
GDB (xrefs)
|
#include "defs.h"#include "gdbcmd.h"#include "ui-out.h"#include "event-loop.h"#include "event-top.h"#include "interps.h"#include "completer.h"#include "top.h"#include "continuations.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 | ( | void | ) |
Definition at line 468 of file interps.c.
References _, add_cmd(), class_support, cmdlist, interpreter_completer(), interpreter_exec_cmd(), and set_cmd_completer().
| void clear_interpreter_hooks | ( | void | ) |
Definition at line 374 of file interps.c.
References deprecated_call_command_hook, deprecated_context_hook, deprecated_error_begin_hook, deprecated_interactive_hook, deprecated_print_frame_info_listing_hook, deprecated_query_hook, deprecated_readline_begin_hook, deprecated_readline_end_hook, deprecated_readline_hook, deprecated_target_wait_hook, and deprecated_warning_hook.
Referenced by interp_set(), and mi_interp::resume().
| struct interp* command_interp | ( | void | ) |
Definition at line 321 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 299 of file interps.c.
References ui_interp_info::current_interpreter, get_current_interp_info(), interp_name(), and interp::name.
Referenced by captured_main_1(), captured_mi_execute_command(), mi_load_progress(), and read_command_lines().
| void current_interp_set_logging | ( | ui_file_up | logfile, |
| bool | logging_redirect | ||
| ) |
Definition at line 267 of file interps.c.
References ui_interp_info::current_interpreter, 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 459 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 70 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(), interp_ui_out(), interpreter_exec_cmd(), scoped_restore_interp::set_interp(), and top_level_interpreter().
|
static |
Definition at line 59 of file interps.c.
References ui::interp_info, and XCNEW.
Referenced by current_interpreter(), get_current_interp_info(), interp_add(), and interp_lookup_existing().
Definition at line 128 of file interps.c.
References gdb_assert, 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 353 of file interps.c.
References ui_interp_info::command_interpreter, interp::exec(), get_current_interp_info(), and interp::interp().
Referenced by interpreter_exec_cmd(), and mi_cmd_interpreter_exec().
| void interp_factory_register | ( | const char * | name, |
| interp_factory_func | func | ||
| ) |
Definition at line 111 of file interps.c.
References _, func, internal_error(), interpreter_factories, and name.
Referenced by _initialize_cli_interp(), _initialize_mi_interp(), and _initialize_tui_interp().
Definition at line 219 of file interps.c.
References interp::interp(), interp_add(), interp_lookup_existing(), interpreter_factories, and name.
Referenced by execute_control_command(), execute_gdb_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 200 of file interps.c.
References get_interp_info(), interp::interp(), ui_interp_info::interp_list, name, interp::name, and interp::next.
Referenced by interp_add(), and interp_lookup().
| const char* interp_name | ( | struct interp * | interp | ) |
Definition at line 292 of file interps.c.
References interp::name.
Referenced by as_cli_interp(), as_tui_interp(), current_interp_named_p(), darwin_solib_get_all_image_info_addr_at_init(), enable_break(), mi_interp::init(), tui_enable(), and scoped_restore_interp::~scoped_restore_interp().
| void interp_pre_command_loop | ( | struct interp * | interp | ) |
Definition at line 334 of file interps.c.
References gdb_assert, and 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, gdb_assert, get_current_interp_info(), interp::init(), interp::inited, interp::interp(), interp::interp_ui_out(), interpreter_p, interp::name, interp::resume(), interp::suspend(), ui_interp_info::top_level_interpreter, and xfree().
Referenced by interpreter_exec_cmd(), and set_top_level_interpreter().
| int interp_supports_command_editing | ( | struct interp * | interp | ) |
Definition at line 344 of file interps.c.
References interp::supports_command_editing().
Referenced by change_line_handler().
Definition at line 257 of file interps.c.
References ui_interp_info::current_interpreter, get_current_interp_info(), and interp::interp_ui_out().
Referenced by as_mi_interp(), decode_line_full(), execute_control_command(), execute_gdb_command(), fputs_maybe_filtered(), info_sharedlibrary_command(), mi_command_param_changed(), mi_execute_command(), mi_memory_changed(), mi_on_normal_stop_1(), mi_print_breakpoint_for_event(), mi_solib_loaded(), mi_solib_unloaded(), mi_tsv_modified(), and mi_user_selected_context_changed().
| void interpreter_completer | ( | struct cmd_list_element * | ignore, |
| completion_tracker & | tracker, | ||
| const char * | text, | ||
| const char * | word | ||
| ) |
Definition at line 432 of file interps.c.
References completion_tracker::add_completion(), interpreter_factories, make_completion_match_str(), and interp::name.
Referenced by _initialize_interpreter(), and init_main().
|
static |
Definition at line 391 of file interps.c.
References _, gdb_argv::count(), ui_interp_info::current_interpreter, current_ui, error(), error_no_arg(), get_current_interp_info(), interp_exec(), interp_lookup(), interp_set(), and gdb_exception::reason.
Referenced by _initialize_interpreter().
| void set_top_level_interpreter | ( | const char * | name | ) |
Definition at line 243 of file interps.c.
References _, current_ui, error(), interp_lookup(), interp_set(), and name.
Referenced by captured_main_1(), and new_ui_command().
| struct interp* top_level_interpreter | ( | void | ) |
Definition at line 449 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_on_command_error(), cli_on_end_stepping_range(), cli_on_exited(), cli_on_no_history(), cli_on_normal_stop(), cli_on_signal_exited(), cli_on_signal_received(), cli_on_sync_execution_done(), cli_on_user_selected_context_changed(), decode_line_full(), find_mi_interp(), fputs_maybe_filtered(), info_sharedlibrary_command(), mi_breakpoint_created(), mi_breakpoint_deleted(), mi_breakpoint_modified(), mi_command_param_changed(), mi_execute_command(), 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_normal_stop(), mi_on_normal_stop_1(), mi_on_resume(), mi_on_sync_execution_done(), mi_output_running_pid(), 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(), tui_enable(), 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().
|
static |
Definition at line 106 of file interps.c.
Referenced by interp_factory_register(), interp_lookup(), and interpreter_completer().
1.8.14