GDB (xrefs)
Classes | Functions | Variables
/tmp/gdb-8.1/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  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)
 
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)
 
struct ui_outinterp_ui_out (struct interp *interp)
 
void current_interp_set_logging (ui_file_up logfile, bool logging_redirect)
 
const char * interp_name (struct interp *interp)
 
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 (void)
 

Variables

static std::vector< interp_factoryinterpreter_factories
 

Function Documentation

◆ _initialize_interpreter()

void _initialize_interpreter ( void  )

◆ 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 
)

◆ 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

Definition at line 59 of file interps.c.

References ui::interp_info, and XCNEW.

Referenced by current_interpreter(), get_current_interp_info(), interp_add(), and interp_lookup_existing().

◆ interp_add()

void interp_add ( struct ui ui,
struct interp interp 
)

◆ 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 
)

◆ 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

◆ interp_name()

const char* interp_name ( struct interp interp)

◆ interp_pre_command_loop()

void interp_pre_command_loop ( struct interp interp)

Definition at line 334 of file interps.c.

References gdb_assert, and 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 344 of file interps.c.

References interp::supports_command_editing().

Referenced by change_line_handler().

◆ interp_ui_out()

struct ui_out* interp_ui_out ( struct interp interp)

◆ 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 243 of file interps.c.

References _, current_ui, error(), 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 106 of file interps.c.

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