GDB (xrefs)
Functions | Variables
/home/stan/gdb/src/gdb/mi/mi-interp.c File Reference
#include "defs.h"
#include "gdb_string.h"
#include "interps.h"
#include "event-top.h"
#include "event-loop.h"
#include "inferior.h"
#include "ui-out.h"
#include "top.h"
#include "exceptions.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 "gdb.h"
#include "objfiles.h"
#include "tracepoint.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 void mi_command_loop (void *data)
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_normal_stop (struct bpstats *bs, int print_frame)
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)
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 int report_initial_inferior (struct inferior *inf, void *closure)
static void * mi_interpreter_init (struct interp *interp, int top_level)
static int mi_interpreter_resume (void *data)
static int mi_interpreter_suspend (void *data)
static struct gdb_exception mi_interpreter_exec (void *data, const char *command)
static int mi_interpreter_prompt_p (void *data)
void mi_cmd_interpreter_exec (char *command, char **argv, int argc)
static int mi_output_running_pid (struct thread_info *info, void *arg)
static int mi_inferior_count (struct inferior *inf, void *arg)
static struct ui_outmi_ui_out (struct interp *interp)
static int mi_set_logging (struct interp *interp, int start_log, struct ui_file *out, struct ui_file *logfile)
void _initialize_mi_interp (void)

Variables

struct mi_suppress_notification mi_suppress_notification
static struct ui_filesaved_raw_stdout
initialize_file_ftype _initialize_mi_interp

Function Documentation

void _initialize_mi_interp ( void  )
static void mi_about_to_proceed ( void  ) [static]
static void mi_breakpoint_created ( struct breakpoint b) [static]
static void mi_breakpoint_deleted ( struct breakpoint b) [static]
static void mi_breakpoint_modified ( struct breakpoint b) [static]
void mi_cmd_interpreter_exec ( char *  command,
char **  argv,
int  argc 
)
static void mi_command_loop ( void *  data) [static]
static void mi_command_param_changed ( const char *  param,
const char *  value 
) [static]
static void mi_execute_command_input_handler ( char *  cmd) [static]

Definition at line 302 of file mi-interp.c.

References fputs_unfiltered(), gdb_flush(), mi_execute_command_wrapper(), and raw_stdout.

Referenced by mi_interpreter_resume().

static void mi_execute_command_wrapper ( const char *  cmd) [static]

Definition at line 294 of file mi-interp.c.

References instream, and mi_execute_command().

Referenced by mi_execute_command_input_handler(), and mi_interpreter_exec().

static void mi_inferior_added ( struct inferior inf) [static]
static void mi_inferior_appeared ( struct inferior inf) [static]
static int mi_inferior_count ( struct inferior inf,
void *  arg 
) [static]

Definition at line 691 of file mi-interp.c.

References inferior::pid.

Referenced by mi_on_resume().

static void mi_inferior_exit ( struct inferior inf) [static]
static void mi_inferior_removed ( struct inferior inf) [static]
static void mi_insert_notify_hooks ( void  ) [static]

Definition at line 276 of file mi-interp.c.

References deprecated_query_hook, and mi_interp_query_hook().

Referenced by mi_cmd_interpreter_exec().

static int mi_interp_query_hook ( const char *  ctlstr,
va_list  ap 
) [static]

Definition at line 288 of file mi-interp.c.

Referenced by mi_insert_notify_hooks().

static struct gdb_exception mi_interpreter_exec ( void *  data,
const char *  command 
) [static, read]

Definition at line 203 of file mi-interp.c.

References exception_none, and mi_execute_command_wrapper().

Referenced by _initialize_mi_interp().

static void* mi_interpreter_init ( struct interp interp,
int  top_level 
) [static]

Definition at line 84 of file mi-interp.c.

References mi_interp::err, mi_interp::event_channel, gdb_assert_not_reached, gdb_stdout, INTERP_MI, INTERP_MI1, INTERP_MI2, INTERP_MI3, interp_name(), iterate_over_inferiors(), mi_interp::log, mi_about_to_proceed(), mi_breakpoint_created(), mi_breakpoint_deleted(), mi_breakpoint_modified(), mi_command_param_changed(), mi_console_file_new(), 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_out_new(), 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_version(), name, observer_attach_about_to_proceed(), observer_attach_breakpoint_created(), observer_attach_breakpoint_deleted(), observer_attach_breakpoint_modified(), observer_attach_command_param_changed(), 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_normal_stop(), observer_attach_record_changed(), observer_attach_solib_loaded(), observer_attach_solib_unloaded(), observer_attach_target_resumed(), observer_attach_thread_exit(), observer_attach_traceframe_changed(), observer_attach_tsv_created(), observer_attach_tsv_deleted(), observer_attach_tsv_modified(), mi_interp::out, raw_stdout, report_initial_inferior(), mi_interp::targ, mi_interp::uiout, and XMALLOC.

Referenced by _initialize_mi_interp().

static int mi_interpreter_prompt_p ( void *  data) [static]

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

Referenced by _initialize_mi_interp().

static int mi_interpreter_resume ( void *  data) [static]
static int mi_interpreter_suspend ( void *  data) [static]

Definition at line 196 of file mi-interp.c.

References gdb_disable_readline().

Referenced by _initialize_mi_interp().

static void mi_memory_changed ( struct inferior inf,
CORE_ADDR  memaddr,
ssize_t  len,
const bfd_byte *  myaddr 
) [static]
static void mi_new_thread ( struct thread_info t) [static]
static void mi_on_normal_stop ( struct bpstats bs,
int  print_frame 
) [static]
static void mi_on_resume ( ptid_t  ptid) [static]
static int mi_output_running_pid ( struct thread_info info,
void *  arg 
) [static]

Definition at line 678 of file mi-interp.c.

References fprintf_unfiltered(), thread_info::num, thread_info::ptid, ptid_get_pid(), and raw_stdout.

Referenced by mi_on_resume().

static void mi_record_changed ( struct inferior inferior,
int  started 
) [static]
static void mi_remove_notify_hooks ( void  ) [static]

Definition at line 282 of file mi-interp.c.

References deprecated_query_hook.

Referenced by mi_cmd_interpreter_exec().

static int mi_set_logging ( struct interp interp,
int  start_log,
struct ui_file out,
struct ui_file logfile 
) [static]
static void mi_solib_loaded ( struct so_list solib) [static]
static void mi_solib_unloaded ( struct so_list solib) [static]
static void mi_thread_exit ( struct thread_info t,
int  silent 
) [static]
static void mi_traceframe_changed ( int  tfnum,
int  tpnum 
) [static]
static void mi_tsv_created ( const struct trace_state_variable tsv) [static]
static void mi_tsv_deleted ( const struct trace_state_variable tsv) [static]
static void mi_tsv_modified ( const struct trace_state_variable tsv) [static]
static struct ui_out* mi_ui_out ( struct interp interp) [static, read]

Definition at line 899 of file mi-interp.c.

References interp_data(), and mi_interp::uiout.

Referenced by _initialize_mi_interp().

static int report_initial_inferior ( struct inferior inf,
void *  closure 
) [static]

Variable Documentation

Initial value:
  {
    0,
    0,
    0,
  }

Definition at line 501 of file mi-interp.c.

struct ui_file* saved_raw_stdout [static]

Definition at line 909 of file mi-interp.c.

Referenced by mi_set_logging().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines