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 | interp |
Variables | |
int | interpreter_async = 0 |
static struct interp * | interp_list = NULL |
static struct interp * | current_interpreter = NULL |
static struct interp * | top_level_interpreter_ptr = NULL |
static struct interp * | command_interpreter |
void _initialize_interpreter | ( | void | ) |
Definition at line 490 of file interps.c.
References _, add_cmd(), class_support, cmdlist, interpreter_exec_cmd(), and set_cmd_completer().
void clear_interpreter_hooks | ( | void | ) |
Definition at line 363 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_register_changed_hook, deprecated_target_wait_hook, and deprecated_warning_hook.
Referenced by interp_set(), and mi_interpreter_resume().
struct interp* command_interp | ( | void | ) |
Definition at line 303 of file interps.c.
References command_interpreter, and current_interpreter.
Referenced by find_mi_interpreter(), follow_fork(), and proceed().
void current_interp_command_loop | ( | void | ) |
Definition at line 313 of file interps.c.
References interp_procs::command_loop_proc, interp::data, gdb_assert, and interp::procs.
Referenced by captured_command_loop().
Definition at line 280 of file interps.c.
References interp::name.
Referenced by captured_main(), captured_mi_execute_command(), mi_load_progress(), and read_command_lines().
Definition at line 238 of file interps.c.
References interp::procs, and interp_procs::set_logging_proc.
Referenced by handle_redirections(), pop_output_files(), and set_logging_redirect().
void interp_add | ( | struct interp * | interp | ) |
Definition at line 105 of file interps.c.
References gdb_assert, interp_list, interp_lookup(), interp::name, and interp::next.
Referenced by _initialize_cli_interp(), _initialize_mi_interp(), and _initialize_tui_interp().
void* interp_data | ( | struct interp * | interp | ) |
Definition at line 265 of file interps.c.
References interp::data.
Referenced by mi_interp_data(), mi_set_logging(), and mi_ui_out().
struct gdb_exception interp_exec | ( | struct interp * | interp, |
const char * | command_str | ||
) |
Definition at line 342 of file interps.c.
References command_interpreter, and gdb_assert.
Referenced by interpreter_exec_cmd(), and mi_cmd_interpreter_exec().
Definition at line 210 of file interps.c.
References interp::name, and interp::next.
Referenced by captured_main(), interp_add(), interp_set_temp(), interpreter_exec_cmd(), and mi_cmd_interpreter_exec().
Definition at line 273 of file interps.c.
References interp::name.
Referenced by darwin_solib_get_all_image_info_addr_at_init(), enable_break(), mi_interpreter_init(), restore_interp(), and tui_enable().
struct interp* interp_new | ( | const char * | name, |
const struct interp_procs * | procs | ||
) |
Definition at line 84 of file interps.c.
References interp_procs::command_loop_proc, interp::data, gdb_assert, interp::inited, interp::name, interp::procs, and interp::quiet_p.
Referenced by _initialize_cli_interp(), _initialize_mi_interp(), and _initialize_tui_interp().
Definition at line 321 of file interps.c.
References interp::quiet_p.
Referenced by cli_on_command_error(), cli_on_end_stepping_range(), cli_on_exited(), cli_on_no_history(), cli_on_signal_exited(), cli_on_signal_received(), cli_on_sync_execution_done(), interp_set(), tui_on_command_error(), tui_on_end_stepping_range(), tui_on_exited(), tui_on_no_history(), tui_on_signal_exited(), tui_on_signal_received(), and tui_on_sync_execution_done().
Definition at line 128 of file interps.c.
References _, clear_interpreter_hooks(), current_interpreter, current_uiout, interp::data, error(), first_time, gdb_assert, interp_procs::init_proc, interp::inited, internal_error(), interp_quiet_p(), interp_set(), interpreter_p, interp::name, interp::procs, interp_procs::resume_proc, interp_procs::suspend_proc, ui_out_flush(), interp_procs::ui_out_proc, ui_out_text(), xfree(), and xsnprintf().
Referenced by captured_main(), interp_set(), and interpreter_exec_cmd().
Definition at line 330 of file interps.c.
References interp::quiet_p.
Referenced by interpreter_exec_cmd().
Definition at line 252 of file interps.c.
References current_interpreter, and interp_lookup().
Referenced by read_command_lines(), and restore_interp().
Definition at line 229 of file interps.c.
References interp::procs, and interp_procs::ui_out_proc.
Referenced by decode_line_full(), find_mi_interpreter(), fputs_maybe_filtered(), info_sharedlibrary_command(), mi_breakpoint_created(), mi_breakpoint_modified(), mi_command_param_changed(), mi_execute_command(), mi_memory_changed(), mi_on_normal_stop(), mi_solib_loaded(), mi_solib_unloaded(), and mi_tsv_modified().
|
static |
Definition at line 381 of file interps.c.
References _, current_interpreter, do_cleanups(), error(), error_no_arg(), gdb_buildargv(), interp_exec(), interp_lookup(), interp_set(), interp_set_quiet(), make_cleanup_freeargv(), and gdb_exception::reason.
Referenced by _initialize_interpreter().
struct interp* top_level_interpreter | ( | void | ) |
Definition at line 476 of file interps.c.
References top_level_interpreter_ptr.
Referenced by decode_line_full(), find_mi_interpreter(), fputs_maybe_filtered(), info_sharedlibrary_command(), mi_breakpoint_created(), mi_breakpoint_modified(), mi_command_param_changed(), mi_execute_command(), mi_memory_changed(), mi_on_normal_stop(), mi_solib_loaded(), mi_solib_unloaded(), mi_tsv_modified(), and tui_enable().
void* top_level_interpreter_data | ( | void | ) |
Definition at line 482 of file interps.c.
References interp::data, and gdb_assert.
Referenced by mi_breakpoint_created(), mi_breakpoint_deleted(), mi_breakpoint_modified(), mi_command_param_changed(), mi_execute_command(), mi_inferior_added(), mi_inferior_appeared(), mi_inferior_exit(), mi_inferior_removed(), mi_memory_changed(), mi_new_thread(), mi_on_normal_stop(), mi_record_changed(), mi_solib_loaded(), mi_solib_unloaded(), mi_thread_exit(), mi_traceframe_changed(), mi_tsv_created(), mi_tsv_deleted(), and mi_tsv_modified().
|
static |
Definition at line 438 of file interps.c.
References interp::name, interp::next, VEC_safe_push, word, and xmalloc().
|
static |
Definition at line 290 of file interps.c.
Referenced by command_interp(), and interp_exec().
|
static |
Definition at line 77 of file interps.c.
Referenced by command_interp(), interp_set(), interp_set_temp(), and interpreter_exec_cmd().
|
static |
Definition at line 76 of file interps.c.
Referenced by interp_add().
int interpreter_async = 0 |
Definition at line 46 of file interps.c.
Referenced by bpstat_do_actions_1(), captured_command_loop(), compile_code_command(), compile_file_command(), compile_print_command(), execute_command_to_string(), execute_gdb_command(), execute_user_command(), fetch_inferior_event(), if_command(), inferior_event_handler(), ioscm_with_output_to_port_worker(), maybe_wait_sync_command_done(), python_command(), python_interactive_command(), reinstall_readline_callback_handler_cleanup(), script_from_file(), and while_command().
|
static |
Definition at line 78 of file interps.c.
Referenced by top_level_interpreter().