GDB (xrefs)
Classes | Macros | Typedefs | Functions
/tmp/gdb-8.1/gdb/interps.h File Reference

Go to the source code of this file.

Classes

class  interp
 
class  scoped_restore_interp
 

Macros

#define INTERP_CONSOLE   "console"
 
#define INTERP_MI1   "mi1"
 
#define INTERP_MI2   "mi2"
 
#define INTERP_MI3   "mi3"
 
#define INTERP_MI   "mi"
 
#define INTERP_TUI   "tui"
 
#define INTERP_INSIGHT   "insight"
 

Typedefs

typedef struct interp *(* interp_factory_func) (const char *name)
 

Functions

void interp_factory_register (const char *name, interp_factory_func func)
 
struct gdb_exception interp_exec (struct interp *interp, const char *command)
 
void interp_add (struct ui *ui, struct interp *interp)
 
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)
 
const char * interp_name (struct interp *interp)
 
int current_interp_named_p (const char *name)
 
void current_interp_set_logging (ui_file_up logfile, bool logging_redirect)
 
struct interptop_level_interpreter (void)
 
struct interpcurrent_interpreter (void)
 
struct interpcommand_interp (void)
 
void clear_interpreter_hooks (void)
 
int interp_supports_command_editing (struct interp *interp)
 
void interp_pre_command_loop (struct interp *interp)
 
void interpreter_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word)
 

Macro Definition Documentation

◆ INTERP_CONSOLE

#define INTERP_CONSOLE   "console"

◆ INTERP_INSIGHT

#define INTERP_INSIGHT   "insight"

Definition at line 176 of file interps.h.

Referenced by captured_main_1().

◆ INTERP_MI

#define INTERP_MI   "mi"

◆ INTERP_MI1

#define INTERP_MI1   "mi1"

◆ INTERP_MI2

#define INTERP_MI2   "mi2"

◆ INTERP_MI3

#define INTERP_MI3   "mi3"

◆ INTERP_TUI

#define INTERP_TUI   "tui"

Definition at line 175 of file interps.h.

Referenced by _initialize_tui_interp(), as_tui_interp(), captured_main_1(), and tui_enable().

Typedef Documentation

◆ interp_factory_func

typedef struct interp*(* interp_factory_func) (const char *name)

Definition at line 29 of file interps.h.

Function Documentation

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

◆ current_interp_set_logging()

void current_interp_set_logging ( ui_file_up  logfile,
bool  logging_redirect 
)

◆ current_interpreter()

struct interp* current_interpreter ( void  )

◆ interp_add()

void interp_add ( struct ui ui,
struct interp interp 
)

◆ interp_exec()

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

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

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