|
GDB (xrefs)
|
#include "defs.h"#include "interps.h"#include "event-top.h"#include "event-loop.h"#include "inferior.h"#include "infrun.h"#include "ui-out.h"#include "top.h"#include "mi-main.h"#include "mi-cmds.h"#include "mi-out.h"#include "mi-console.h"#include "mi-common.h"#include "observer.h"#include "gdbthread.h"#include "solist.h"#include "objfiles.h"#include "tracepoint.h"#include "cli-out.h"#include "thread-fsm.h"#include "cli/cli-interp.h"Go to the source code of this file.
Functions | |
| static void | mi_execute_command_wrapper (const char *cmd) |
| static void | mi_execute_command_input_handler (char *cmd) |
| static int | mi_interp_query_hook (const char *ctlstr, va_list ap) ATTRIBUTE_PRINTF(1 |
| static int static void | mi_insert_notify_hooks (void) |
| static void | mi_remove_notify_hooks (void) |
| static void | mi_on_signal_received (enum gdb_signal siggnal) |
| static void | mi_on_end_stepping_range (void) |
| static void | mi_on_signal_exited (enum gdb_signal siggnal) |
| static void | mi_on_exited (int exitstatus) |
| static void | mi_on_normal_stop (struct bpstats *bs, int print_frame) |
| static void | mi_on_no_history (void) |
| static void | mi_new_thread (struct thread_info *t) |
| static void | mi_thread_exit (struct thread_info *t, int silent) |
| static void | mi_record_changed (struct inferior *, int, const char *, const char *) |
| static void | mi_inferior_added (struct inferior *inf) |
| static void | mi_inferior_appeared (struct inferior *inf) |
| static void | mi_inferior_exit (struct inferior *inf) |
| static void | mi_inferior_removed (struct inferior *inf) |
| static void | mi_on_resume (ptid_t ptid) |
| static void | mi_solib_loaded (struct so_list *solib) |
| static void | mi_solib_unloaded (struct so_list *solib) |
| static void | mi_about_to_proceed (void) |
| static void | mi_traceframe_changed (int tfnum, int tpnum) |
| static void | mi_tsv_created (const struct trace_state_variable *tsv) |
| static void | mi_tsv_deleted (const struct trace_state_variable *tsv) |
| static void | mi_tsv_modified (const struct trace_state_variable *tsv) |
| static void | mi_breakpoint_created (struct breakpoint *b) |
| static void | mi_breakpoint_deleted (struct breakpoint *b) |
| static void | mi_breakpoint_modified (struct breakpoint *b) |
| static void | mi_command_param_changed (const char *param, const char *value) |
| static void | mi_memory_changed (struct inferior *inf, CORE_ADDR memaddr, ssize_t len, const bfd_byte *myaddr) |
| static void | mi_on_sync_execution_done (void) |
| static int | report_initial_inferior (struct inferior *inf, void *closure) |
| static void | display_mi_prompt (struct mi_interp *mi) |
| static struct mi_interp * | as_mi_interp (struct interp *interp) |
| void | mi_cmd_interpreter_exec (const char *command, char **argv, int argc) |
| static struct mi_interp * | find_mi_interp (void) |
| static void | mi_on_normal_stop_1 (struct bpstats *bs, int print_frame) |
| static void | mi_print_breakpoint_for_event (struct mi_interp *mi, breakpoint *bp) |
| static int | mi_output_running_pid (struct thread_info *info, void *arg) |
| static int | mi_inferior_count (struct inferior *inf, void *arg) |
| static void | mi_on_resume_1 (struct mi_interp *mi, ptid_t ptid) |
| void | mi_output_solib_attribs (ui_out *uiout, struct so_list *solib) |
| static void | mi_user_selected_context_changed (user_selected_what selection) |
| static struct interp * | mi_interp_factory (const char *name) |
| void | _initialize_mi_interp (void) |
Variables | |
| struct mi_suppress_notification | mi_suppress_notification |
| void _initialize_mi_interp | ( | void | ) |
Definition at line 1348 of file mi-interp.c.
References interp_factory_register(), INTERP_MI, INTERP_MI1, INTERP_MI2, INTERP_MI3, mi_about_to_proceed(), mi_breakpoint_created(), mi_breakpoint_deleted(), mi_breakpoint_modified(), mi_command_param_changed(), mi_inferior_added(), mi_inferior_appeared(), mi_inferior_exit(), mi_inferior_removed(), mi_interp_factory(), mi_memory_changed(), mi_new_thread(), mi_on_end_stepping_range(), mi_on_exited(), mi_on_no_history(), mi_on_normal_stop(), mi_on_resume(), mi_on_signal_exited(), mi_on_signal_received(), mi_on_sync_execution_done(), 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(), observer_attach_about_to_proceed(), observer_attach_breakpoint_created(), observer_attach_breakpoint_deleted(), observer_attach_breakpoint_modified(), observer_attach_command_param_changed(), observer_attach_end_stepping_range(), observer_attach_exited(), observer_attach_inferior_added(), observer_attach_inferior_appeared(), observer_attach_inferior_exit(), observer_attach_inferior_removed(), observer_attach_memory_changed(), observer_attach_new_thread(), observer_attach_no_history(), observer_attach_normal_stop(), observer_attach_record_changed(), observer_attach_signal_exited(), observer_attach_signal_received(), observer_attach_solib_loaded(), observer_attach_solib_unloaded(), observer_attach_sync_execution_done(), observer_attach_target_resumed(), observer_attach_thread_exit(), observer_attach_traceframe_changed(), observer_attach_tsv_created(), observer_attach_tsv_deleted(), observer_attach_tsv_modified(), and observer_attach_user_selected_context_changed().
Definition at line 107 of file mi-interp.c.
References interp::interp(), and interp_ui_out().
Referenced by find_mi_interp(), 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_normal_stop(), 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(), and mi_user_selected_context_changed().
|
static |
Definition at line 94 of file mi-interp.c.
References current_ui, fputs_unfiltered(), gdb_flush(), ui::prompt_state, PROMPTED, and mi_interp::raw_stdout.
Referenced by mi_execute_command_input_handler(), mi_on_sync_execution_done(), and mi_interp::pre_command_loop().
|
static |
Definition at line 520 of file mi-interp.c.
References as_mi_interp(), command_interp(), and top_level_interpreter().
Referenced by mi_on_end_stepping_range(), mi_on_exited(), mi_on_no_history(), mi_on_signal_exited(), and mi_on_signal_received().
|
static |
Definition at line 691 of file mi-interp.c.
References thread_info::control, thread_control_state::in_infcall, inferior_ptid, inferior_thread(), mi_proceeded, null_ptid, and ptid_equal().
Referenced by _initialize_mi_interp().
|
static |
Definition at line 864 of file mi-interp.c.
References as_mi_interp(), mi_suppress_notification::breakpoint, mi_interp::event_channel, fprintf_unfiltered(), gdb_flush(), mi_print_breakpoint_for_event(), breakpoint::number, target_terminal::ours_for_output(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().
Referenced by _initialize_mi_interp().
|
static |
Definition at line 893 of file mi-interp.c.
References as_mi_interp(), mi_suppress_notification::breakpoint, mi_interp::event_channel, fprintf_unfiltered(), gdb_flush(), breakpoint::number, target_terminal::ours_for_output(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().
Referenced by _initialize_mi_interp().
|
static |
Definition at line 921 of file mi-interp.c.
References as_mi_interp(), mi_suppress_notification::breakpoint, mi_interp::event_channel, fprintf_unfiltered(), gdb_flush(), mi_print_breakpoint_for_event(), breakpoint::number, target_terminal::ours_for_output(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().
Referenced by _initialize_mi_interp().
| void mi_cmd_interpreter_exec | ( | const char * | command, |
| char ** | argv, | ||
| int | argc | ||
| ) |
Definition at line 204 of file mi-interp.c.
References _, gdb::argv, current_ui, error(), interp_exec(), interp_lookup(), gdb_exception::message, mi_insert_notify_hooks(), mi_remove_notify_hooks(), gdb_exception::reason, and string.
|
static |
Definition at line 1149 of file mi-interp.c.
References as_mi_interp(), mi_suppress_notification::cmd_param_changed, mi_interp::event_channel, ui_out::field_string(), fprintf_unfiltered(), gdb_flush(), interp_ui_out(), target_terminal::ours_for_output(), ui_out::redirect(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().
Referenced by _initialize_mi_interp().
|
static |
Definition at line 301 of file mi-interp.c.
References as_mi_interp(), current_ui, display_mi_prompt(), mi_execute_command_wrapper(), PROMPT_NEEDED, ui::prompt_state, and top_level_interpreter().
Referenced by mi_interp::resume().
|
static |
Definition at line 275 of file mi-interp.c.
References current_ui, ui::instream, mi_execute_command(), and ui::stdin_stream.
Referenced by mi_interp::exec(), and mi_execute_command_input_handler().
|
static |
Definition at line 423 of file mi-interp.c.
References as_mi_interp(), mi_interp::event_channel, fprintf_unfiltered(), gdb_flush(), interp::interp(), target_terminal::ours_for_output(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().
Referenced by _initialize_mi_interp().
|
static |
Definition at line 451 of file mi-interp.c.
References as_mi_interp(), mi_interp::event_channel, fprintf_unfiltered(), gdb_flush(), target_terminal::ours_for_output(), inf::pid, SWITCH_THRU_ALL_UIS, and top_level_interpreter().
Referenced by _initialize_mi_interp().
|
static |
|
static |
Definition at line 471 of file mi-interp.c.
References as_mi_interp(), mi_interp::event_channel, fprintf_unfiltered(), gdb_flush(), int_string(), target_terminal::ours_for_output(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().
Referenced by _initialize_mi_interp().
|
static |
Definition at line 496 of file mi-interp.c.
References as_mi_interp(), mi_interp::event_channel, fprintf_unfiltered(), gdb_flush(), target_terminal::ours_for_output(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().
Referenced by _initialize_mi_interp().
|
static |
Definition at line 257 of file mi-interp.c.
References deprecated_query_hook, and mi_interp_query_hook().
Referenced by mi_cmd_interpreter_exec().
|
static |
Definition at line 1342 of file mi-interp.c.
References name.
Referenced by _initialize_mi_interp().
|
static |
Definition at line 269 of file mi-interp.c.
Referenced by mi_insert_notify_hooks().
|
static |
Definition at line 1183 of file mi-interp.c.
References as_mi_interp(), mi_interp::event_channel, ui_out::field_core_addr(), ui_out::field_fmt(), ui_out::field_string(), find_pc_section(), flags, fprintf_unfiltered(), gdb_flush(), hex_string(), interp_ui_out(), mi_suppress_notification::memory, inferior::num, objfile::obfd, obj_section::objfile, target_terminal::ours_for_output(), ui_out::redirect(), SWITCH_THRU_ALL_UIS, target_gdbarch(), obj_section::the_bfd_section, and top_level_interpreter().
Referenced by _initialize_mi_interp().
|
static |
Definition at line 333 of file mi-interp.c.
References as_mi_interp(), mi_interp::event_channel, find_inferior_ptid(), fprintf_unfiltered(), gdb_assert, gdb_flush(), thread_info::global_num, target_terminal::ours_for_output(), thread_info::ptid, SWITCH_THRU_ALL_UIS, and top_level_interpreter().
Referenced by _initialize_mi_interp().
|
static |
Definition at line 559 of file mi-interp.c.
References mi_interp::cli_uiout, find_mi_interp(), mi_interp::mi_uiout, print_end_stepping_range_reason(), and SWITCH_THRU_ALL_UIS.
Referenced by _initialize_mi_interp().
|
static |
Definition at line 593 of file mi-interp.c.
References mi_interp::cli_uiout, find_mi_interp(), mi_interp::mi_uiout, print_exited_reason(), and SWITCH_THRU_ALL_UIS.
Referenced by _initialize_mi_interp().
|
static |
Definition at line 610 of file mi-interp.c.
References mi_interp::cli_uiout, find_mi_interp(), mi_interp::mi_uiout, print_no_history_reason(), and SWITCH_THRU_ALL_UIS.
Referenced by _initialize_mi_interp().
|
static |
Definition at line 679 of file mi-interp.c.
References as_mi_interp(), mi_on_normal_stop_1(), print_frame(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().
Referenced by _initialize_mi_interp().
|
static |
Definition at line 625 of file mi-interp.c.
References async_reason_lookup(), mi_interp::cli_uiout, current_ui, ui_out::field_int(), ui_out::field_string(), fputs_unfiltered(), gdb_flush(), thread_info::global_num, inferior_ptid, inferior_thread(), INTERP_CONSOLE, interp_lookup(), interp_ui_out(), mi_out_put(), mi_out_rewind(), mi_print_timing_maybe(), non_stop, print_frame(), print_stop_event(), mi_interp::raw_stdout, should_print_stop_to_console(), target_core_of_thread(), thread_info::thread_fsm, thread_fsm_async_reply_reason(), thread_fsm_finished_p(), and top_level_interpreter().
Referenced by mi_on_normal_stop().
|
static |
Definition at line 1034 of file mi-interp.c.
References as_mi_interp(), thread_info::control, find_thread_ptid(), thread_control_state::in_infcall, inferior_thread(), mi_on_resume_1(), minus_one_ptid, target_terminal::ours_for_output(), thread_info::ptid, ptid_equal(), ptid_is_pid(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().
Referenced by _initialize_mi_interp().
Definition at line 980 of file mi-interp.c.
References current_token, current_ui, find_thread_ptid(), fprintf_unfiltered(), fputs_unfiltered(), gdb_assert, gdb_flush(), thread_info::global_num, iterate_over_inferiors(), iterate_over_threads(), mi_inferior_count(), mi_output_running_pid(), mi_proceeded, PROMPT_BLOCKED, ui::prompt_state, thread_info::ptid, ptid_get_pid(), ptid_is_pid(), mi_interp::raw_stdout, and running_result_record_printed.
Referenced by mi_on_resume().
|
static |
Definition at line 576 of file mi-interp.c.
References mi_interp::cli_uiout, find_mi_interp(), mi_interp::mi_uiout, print_signal_exited_reason(), and SWITCH_THRU_ALL_UIS.
Referenced by _initialize_mi_interp().
|
static |
Definition at line 542 of file mi-interp.c.
References mi_interp::cli_uiout, find_mi_interp(), mi_interp::mi_uiout, print_signal_received_reason(), and SWITCH_THRU_ALL_UIS.
Referenced by _initialize_mi_interp().
|
static |
Definition at line 285 of file mi-interp.c.
References as_mi_interp(), display_mi_prompt(), mi_async_p(), and top_level_interpreter().
Referenced by _initialize_mi_interp().
|
static |
Definition at line 947 of file mi-interp.c.
References as_mi_interp(), fprintf_unfiltered(), thread_info::global_num, thread_info::ptid, ptid_get_pid(), mi_interp::raw_stdout, SWITCH_THRU_ALL_UIS, and top_level_interpreter().
Referenced by mi_on_resume_1().
Definition at line 1064 of file mi-interp.c.
References so_list::addr_high, so_list::addr_low, current_inferior(), ui_out::field_core_addr(), ui_out::field_fmt(), ui_out::field_int(), ui_out::field_string(), gdbarch_has_global_solist(), so_list::so_name, so_list::so_original_name, so_list::symbols_loaded, and target_gdbarch().
Referenced by mi_cmd_file_list_shared_libraries(), and mi_solib_loaded().
|
static |
Definition at line 832 of file mi-interp.c.
References bp, CATCH, current_uiout, END_CATCH, mi_interp::event_channel, exception_print(), gdb_stderr, interp_ui_out(), make_scoped_restore(), print_breakpoint(), ui_out::redirect(), RETURN_MASK_ALL, and TRY.
Referenced by mi_breakpoint_created(), and mi_breakpoint_modified().
|
static |
Definition at line 381 of file mi-interp.c.
References as_mi_interp(), mi_interp::event_channel, fprintf_unfiltered(), gdb_flush(), inferior::num, target_terminal::ours_for_output(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().
Referenced by _initialize_mi_interp().
|
static |
Definition at line 263 of file mi-interp.c.
References deprecated_query_hook.
Referenced by mi_cmd_interpreter_exec().
|
static |
Definition at line 1085 of file mi-interp.c.
References as_mi_interp(), mi_interp::event_channel, fprintf_unfiltered(), gdb_flush(), interp_ui_out(), mi_output_solib_attribs(), target_terminal::ours_for_output(), ui_out::redirect(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().
Referenced by _initialize_mi_interp().
|
static |
Definition at line 1113 of file mi-interp.c.
References as_mi_interp(), current_inferior(), mi_interp::event_channel, ui_out::field_fmt(), ui_out::field_string(), fprintf_unfiltered(), gdb_flush(), gdbarch_has_global_solist(), interp_ui_out(), target_terminal::ours_for_output(), ui_out::redirect(), so_list::so_name, so_list::so_original_name, SWITCH_THRU_ALL_UIS, target_gdbarch(), and top_level_interpreter().
Referenced by _initialize_mi_interp().
|
static |
Definition at line 357 of file mi-interp.c.
References as_mi_interp(), mi_interp::event_channel, fprintf_unfiltered(), gdb_flush(), thread_info::global_num, thread_info::inf, inferior::num, target_terminal::ours_for_output(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().
Referenced by _initialize_mi_interp().
|
static |
Definition at line 720 of file mi-interp.c.
References as_mi_interp(), mi_interp::event_channel, fprintf_unfiltered(), gdb_flush(), target_terminal::ours_for_output(), SWITCH_THRU_ALL_UIS, top_level_interpreter(), and mi_suppress_notification::traceframe.
Referenced by _initialize_mi_interp().
|
static |
Definition at line 749 of file mi-interp.c.
References as_mi_interp(), mi_interp::event_channel, fprintf_unfiltered(), gdb_flush(), trace_state_variable::initial_value, trace_state_variable::name, target_terminal::ours_for_output(), plongest(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().
Referenced by _initialize_mi_interp().
|
static |
Definition at line 772 of file mi-interp.c.
References as_mi_interp(), mi_interp::event_channel, fprintf_unfiltered(), gdb_flush(), trace_state_variable::name, target_terminal::ours_for_output(), SWITCH_THRU_ALL_UIS, and top_level_interpreter().
Referenced by _initialize_mi_interp().
|
static |
Definition at line 797 of file mi-interp.c.
References as_mi_interp(), mi_interp::event_channel, ui_out::field_string(), fprintf_unfiltered(), gdb_flush(), trace_state_variable::initial_value, interp_ui_out(), trace_state_variable::name, target_terminal::ours_for_output(), plongest(), ui_out::redirect(), SWITCH_THRU_ALL_UIS, top_level_interpreter(), trace_state_variable::value, and trace_state_variable::value_known.
Referenced by _initialize_mi_interp().
|
static |
Definition at line 1233 of file mi-interp.c.
References as_mi_interp(), mi_interp::cli_uiout, mi_interp::event_channel, find_thread_ptid(), fprintf_unfiltered(), gdb_flush(), get_selected_frame(), thread_info::global_num, has_stack_frames(), inferior_ptid, interp_ui_out(), target_terminal::ours_for_output(), print_selected_inferior(), print_selected_thread_frame(), print_stack_frame_to_uiout(), ui_out::redirect(), SRC_AND_LOC, thread_info::state, SWITCH_THRU_ALL_UIS, THREAD_RUNNING, top_level_interpreter(), mi_suppress_notification::user_selected_context, USER_SELECTED_FRAME, USER_SELECTED_INFERIOR, and USER_SELECTED_THREAD.
Referenced by _initialize_mi_interp().
|
static |
Definition at line 1284 of file mi-interp.c.
References mi_interp::event_channel, fprintf_unfiltered(), gdb_flush(), and target_terminal::ours_for_output().
Referenced by mi_interp::init().
Definition at line 709 of file mi-interp.c.
1.8.14