GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Functions | Variables
interps.c File Reference
#include "defs.h"
#include "gdbcmd.h"
#include "ui-out.h"
#include "gdbsupport/event-loop.h"
#include "event-top.h"
#include "interps.h"
#include "completer.h"
#include "top.h"
#include "main.h"
#include "gdbsupport/buildargv.h"

Go to the source code of this file.

Classes

struct  ui_interp_info
 
struct  interp_factory
 

Functions

static struct ui_interp_infoget_interp_info (struct ui *ui)
 
static struct ui_interp_infoget_current_interp_info (void)
 
static struct interpinterp_lookup_existing (struct ui *ui, const char *name)
 
void interp_factory_register (const char *name, interp_factory_func func)
 
static void interp_add (struct ui *ui, struct interp *interp)
 
static void interp_set (struct interp *interp, bool top_level)
 
struct interpinterp_lookup (struct ui *ui, const char *name)
 
void set_top_level_interpreter (const char *name)
 
void current_interp_set_logging (ui_file_up logfile, bool logging_redirect, bool debug_redirect)
 
int current_interp_named_p (const char *interp_name)
 
struct interpcommand_interp (void)
 
void interp_pre_command_loop (struct interp *interp)
 
int interp_supports_command_editing (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 (const char *args, int from_tty)
 
void interpreter_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word)
 
struct interptop_level_interpreter (void)
 
struct interpcurrent_interpreter (void)
 
void _initialize_interpreter ()
 

Variables

static std::vector< interp_factoryinterpreter_factories
 

Function Documentation

◆ _initialize_interpreter()

void _initialize_interpreter ( )

Definition at line 451 of file interps.c.

Referenced by initialize_all_files().

◆ clear_interpreter_hooks()

void clear_interpreter_hooks ( void  )

◆ command_interp()

struct interp * command_interp ( void  )

◆ current_interp_named_p()

int current_interp_named_p ( const char *  interp_name)

◆ current_interp_set_logging()

void current_interp_set_logging ( ui_file_up  logfile,
bool  logging_redirect,
bool  debug_redirect 
)

◆ current_interpreter()

struct interp * current_interpreter ( void  )

◆ get_current_interp_info()

static struct ui_interp_info * get_current_interp_info ( void  )
static

◆ get_interp_info()

static struct ui_interp_info * get_interp_info ( struct ui ui)
static

◆ interp_add()

static void interp_add ( struct ui ui,
struct interp interp 
)
static

◆ interp_exec()

struct gdb_exception interp_exec ( struct interp interp,
const char *  command_str 
)

◆ interp_factory_register()

void interp_factory_register ( const char *  name,
interp_factory_func  func 
)

Definition at line 112 of file interps.c.

References f(), func, interpreter_factories, and name.

◆ interp_lookup()

struct interp * interp_lookup ( struct ui ui,
const char *  name 
)

◆ interp_lookup_existing()

static struct interp * interp_lookup_existing ( struct ui ui,
const char *  name 
)
static

Definition at line 203 of file interps.c.

References get_interp_info(), ui_interp_info::interp_list, name, interp::name(), and interp::next.

Referenced by interp_add(), and interp_lookup().

◆ interp_pre_command_loop()

void interp_pre_command_loop ( struct interp interp)

Definition at line 317 of file interps.c.

References interp::pre_command_loop().

Referenced by captured_command_loop(), and new_ui_command().

◆ interp_set()

static void interp_set ( struct interp interp,
bool  top_level 
)
static

◆ interp_supports_command_editing()

int interp_supports_command_editing ( struct interp interp)

Definition at line 327 of file interps.c.

References interp::supports_command_editing().

Referenced by change_line_handler().

◆ interpreter_completer()

void interpreter_completer ( struct cmd_list_element ignore,
completion_tracker tracker,
const char *  text,
const char *  word 
)

◆ interpreter_exec_cmd()

static void interpreter_exec_cmd ( const char *  args,
int  from_tty 
)
static

◆ set_top_level_interpreter()

void set_top_level_interpreter ( const char *  name)

Definition at line 246 of file interps.c.

References current_ui, interp_lookup(), interp_set(), and name.

Referenced by captured_main_1(), and new_ui_command().

◆ top_level_interpreter()

struct interp * top_level_interpreter ( void  )

Variable Documentation

◆ interpreter_factories

std::vector<interp_factory> interpreter_factories
static

Definition at line 107 of file interps.c.

Referenced by interp_factory_register(), interp_lookup(), and interpreter_completer().