GDB (xrefs)
Classes | Functions | Variables
/home/stan/gdb/src/gdb/interps.c File Reference
#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 "gdb_string.h"
#include "gdb_assert.h"
#include "top.h"
#include "exceptions.h"
#include "continuations.h"

Go to the source code of this file.

Classes

struct  interp

Functions

static void initialize_interps (void)
void _initialize_interpreter (void)
struct interpinterp_new (const char *name, const struct interp_procs *procs)
void interp_add (struct interp *interp)
int interp_set (struct interp *interp, int top_level)
struct interpinterp_lookup (const char *name)
struct ui_outinterp_ui_out (struct interp *interp)
int current_interp_set_logging (int start_log, struct ui_file *out, struct ui_file *logfile)
struct interpinterp_set_temp (const char *name)
void * interp_data (struct interp *interp)
const char * interp_name (struct interp *interp)
int current_interp_named_p (const char *interp_name)
int current_interp_display_prompt_p (void)
void current_interp_command_loop (void)
int interp_quiet_p (struct interp *interp)
static int interp_set_quiet (struct interp *interp, int quiet)
int interp_exec_p (struct interp *interp)
struct gdb_exception interp_exec (struct interp *interp, const char *command_str)
void clear_interpreter_hooks (void)
static void interpreter_exec_cmd (char *args, int from_tty)
static VEC (char_ptr)
struct interptop_level_interpreter (void)
void * top_level_interpreter_data (void)

Variables

int interpreter_async = 0
static struct interpinterp_list = NULL
static struct interpcurrent_interpreter = NULL
static struct interptop_level_interpreter_ptr = NULL
static int interpreter_initialized = 0

Function Documentation

void _initialize_interpreter ( void  )
void clear_interpreter_hooks ( void  )
void current_interp_command_loop ( void  )

Definition at line 323 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 311 of file interps.c.

References interp::data, interp::procs, and interp_procs::prompt_proc_p.

Referenced by display_gdb_prompt().

int current_interp_named_p ( const char *  interp_name)
int current_interp_set_logging ( int  start_log,
struct ui_file out,
struct ui_file logfile 
)
static void initialize_interps ( void  ) [static]

Definition at line 392 of file interps.c.

References interpreter_initialized.

Referenced by interp_add().

void interp_add ( struct interp interp)
void* interp_data ( struct interp interp)

Definition at line 284 of file interps.c.

References interp::data.

Referenced by gdbtk_interpreter_ui_out(), mi_set_logging(), and mi_ui_out().

struct gdb_exception interp_exec ( struct interp interp,
const char *  command_str 
) [read]

Definition at line 357 of file interps.c.

References exception_none.

Referenced by interpreter_exec_cmd(), and mi_cmd_interpreter_exec().

int interp_exec_p ( struct interp interp)

Definition at line 351 of file interps.c.

References interp_procs::exec_proc, and interp::procs.

Referenced by mi_cmd_interpreter_exec().

struct interp* interp_lookup ( const char *  name) [read]
const char* interp_name ( struct interp interp)
struct interp* interp_new ( const char *  name,
const struct interp_procs procs 
) [read]
int interp_quiet_p ( struct interp interp)

Definition at line 331 of file interps.c.

References interp::quiet_p.

Referenced by cli_interpreter_display_prompt_p(), interp_set(), and tui_display_prompt_p().

int interp_set ( struct interp interp,
int  top_level 
)
static int interp_set_quiet ( struct interp interp,
int  quiet 
) [static]

Definition at line 340 of file interps.c.

References interp::quiet_p.

Referenced by interpreter_exec_cmd().

struct interp* interp_set_temp ( const char *  name) [read]

Definition at line 271 of file interps.c.

References current_interpreter, and interp_lookup().

Referenced by read_command_lines(), and restore_interp().

struct ui_out* interp_ui_out ( struct interp interp) [read]
static void interpreter_exec_cmd ( char *  args,
int  from_tty 
) [static]
struct interp* top_level_interpreter ( void  ) [read]
void* top_level_interpreter_data ( void  )
static VEC ( char_ptr  ) [static]

Definition at line 456 of file interps.c.

References interp::name, interp::next, VEC, VEC_safe_push, word, and xmalloc().


Variable Documentation

struct interp* current_interpreter = NULL [static]

Definition at line 83 of file interps.c.

Referenced by interp_set(), interp_set_temp(), and interpreter_exec_cmd().

struct interp* interp_list = NULL [static]

Definition at line 82 of file interps.c.

Referenced by interp_add().

Definition at line 86 of file interps.c.

Referenced by initialize_interps(), and interp_add().

struct interp* top_level_interpreter_ptr = NULL [static]

Definition at line 84 of file interps.c.

Referenced by top_level_interpreter().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines