GDB (xrefs)
Classes | Typedefs | Enumerations | Functions
cli-script.h File Reference

Go to the source code of this file.

Classes

struct  command_line
 
struct  command_lines_deleter
 

Typedefs

typedef std::unique_ptr< command_line, command_lines_deletercommand_line_up
 

Enumerations

enum  misc_command_type { ok_command, end_command, else_command, nop_command }
 
enum  command_control_type {
  simple_control, break_control, continue_control, while_control,
  if_control, commands_control, python_control, compile_control,
  guile_control, while_stepping_control, invalid_control
}
 

Functions

void free_command_lines (struct command_line **)
 
command_line_up read_command_lines (char *, int, int, void(*)(char *, void *), void *)
 
command_line_up read_command_lines_1 (char *(*)(void), int, void(*)(char *, void *), void *)
 
void script_from_file (FILE *stream, const char *file)
 
void show_user_1 (struct cmd_list_element *c, const char *prefix, const char *name, struct ui_file *stream)
 
enum command_control_type execute_control_command (struct command_line *cmd)
 
enum command_control_type execute_control_command_untraced (struct command_line *cmd)
 
command_line_up get_command_line (enum command_control_type, const char *)
 
void print_command_lines (struct ui_out *, struct command_line *, unsigned int)
 
command_line_up copy_command_lines (struct command_line *cmds)
 
void execute_user_command (struct cmd_list_element *c, const char *args)
 
std::string insert_user_defined_cmd_args (const char *line)
 
void print_command_trace (const char *cmd)
 
void reset_command_nest_depth (void)
 

Typedef Documentation

◆ command_line_up

Definition at line 88 of file cli-script.h.

Enumeration Type Documentation

◆ command_control_type

Enumerator
simple_control 
break_control 
continue_control 
while_control 
if_control 
commands_control 
python_control 
compile_control 
guile_control 
while_stepping_control 
invalid_control 

Definition at line 33 of file cli-script.h.

◆ misc_command_type

Control types for commands.

Enumerator
ok_command 
end_command 
else_command 
nop_command 

Definition at line 25 of file cli-script.h.

Function Documentation

◆ copy_command_lines()

command_line_up copy_command_lines ( struct command_line cmds)

◆ execute_control_command()

enum command_control_type execute_control_command ( struct command_line cmd)

Definition at line 650 of file cli-script.c.

◆ execute_control_command_untraced()

enum command_control_type execute_control_command_untraced ( struct command_line cmd)

◆ execute_user_command()

void execute_user_command ( struct cmd_list_element c,
const char *  args 
)

◆ free_command_lines()

void free_command_lines ( struct command_line **  )

◆ get_command_line()

command_line_up get_command_line ( enum  command_control_type,
const char *   
)

◆ insert_user_defined_cmd_args()

std::string insert_user_defined_cmd_args ( const char *  line)

Definition at line 788 of file cli-script.c.

References user_args_stack.

Referenced by eval_command(), and execute_control_command_1().

◆ print_command_lines()

void print_command_lines ( struct ui_out ,
struct command_line ,
unsigned  int 
)

Definition at line 189 of file cli-script.c.

◆ print_command_trace()

void print_command_trace ( const char *  cmd)

◆ read_command_lines()

command_line_up read_command_lines ( char *  ,
int  ,
int  ,
void(*)(char *, void *)  ,
void *   
)

◆ read_command_lines_1()

command_line_up read_command_lines_1 ( char *  *)(void,
int  ,
void(*)(char *, void *)  ,
void *   
)

◆ reset_command_nest_depth()

void reset_command_nest_depth ( void  )

Definition at line 430 of file cli-script.c.

References command_nest_depth, and suppress_next_print_command_trace.

Referenced by display_gdb_prompt().

◆ script_from_file()

void script_from_file ( FILE *  stream,
const char *  file 
)

◆ show_user_1()

void show_user_1 ( struct cmd_list_element c,
const char *  prefix,
const char *  name,
struct ui_file stream 
)