GDB (xrefs)
Classes | Functions | Variables
/tmp/gdb-7.10/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 "top.h"
#include "continuations.h"

Go to the source code of this file.

Classes

struct  interp
 

Functions

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)
 
struct interpcommand_interp (void)
 
void current_interp_command_loop (void)
 
int interp_quiet_p (struct interp *interp)
 
static int interp_set_quiet (struct interp *interp, int quiet)
 
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 struct interpcommand_interpreter
 

Function Documentation

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  )
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().

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 
)
void interp_add ( struct interp 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().

struct interp* interp_lookup ( const char *  name)
const char* interp_name ( struct interp interp)
struct interp* interp_new ( const char *  name,
const struct interp_procs procs 
)
int interp_quiet_p ( struct interp interp)
int interp_set ( struct interp interp,
int  top_level 
)
static int interp_set_quiet ( struct interp interp,
int  quiet 
)
static

Definition at line 330 of file interps.c.

References interp::quiet_p.

Referenced by interpreter_exec_cmd().

struct interp* interp_set_temp ( const char *  name)

Definition at line 252 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)
static void interpreter_exec_cmd ( char *  args,
int  from_tty 
)
static
struct interp* top_level_interpreter ( void  )
void* top_level_interpreter_data ( void  )
static VEC ( char_ptr  )
static

Definition at line 438 of file interps.c.

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

Variable Documentation

struct interp* command_interpreter
static

Definition at line 290 of file interps.c.

Referenced by command_interp(), and interp_exec().

struct interp* current_interpreter = NULL
static

Definition at line 77 of file interps.c.

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

struct interp* interp_list = NULL
static

Definition at line 76 of file interps.c.

Referenced by interp_add().

int interpreter_async = 0
struct interp* top_level_interpreter_ptr = NULL
static

Definition at line 78 of file interps.c.

Referenced by top_level_interpreter().