GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions
cli-script.h File Reference
#include "gdbsupport/function-view.h"

Go to the source code of this file.

Classes

struct  command_lines_deleter
 
struct  command_line
 

Typedefs

typedef std::shared_ptr< command_linecounted_command_line
 
typedef std::unique_ptr< command_line, command_lines_deletercommand_line_up
 
using read_next_line_ftype = gdb::function_view<const char * (std::string &)>
 

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 , define_control , document_control ,
  invalid_control
}
 

Functions

void free_command_lines (struct command_line **)
 
counted_command_line read_command_lines (const char *, int, int, gdb::function_view< void(const char *)>)
 
counted_command_line read_command_lines_1 (read_next_line_ftype, int, gdb::function_view< void(const char *)>)
 
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)
 
void execute_control_commands (struct command_line *cmdlines, int from_tty)
 
std::string execute_control_commands_to_string (struct command_line *commands, int from_tty)
 
enum command_control_type execute_control_command (struct command_line *cmd, int from_tty=0)
 
enum command_control_type execute_control_command_untraced (struct command_line *cmd)
 
counted_command_line get_command_line (enum command_control_type, const char *)
 
void print_command_lines (struct ui_out *, struct command_line *, unsigned int)
 
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,...) ATTRIBUTE_PRINTF(1
 
void void reset_command_nest_depth (void)
 

Typedef Documentation

◆ command_line_up

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

◆ counted_command_line

typedef std::shared_ptr<command_line> counted_command_line

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

◆ read_next_line_ftype

using read_next_line_ftype = gdb::function_view<const char * (std::string &)>

Definition at line 121 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 
define_control 
document_control 
invalid_control 

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

◆ misc_command_type

Control types for commands.

Enumerator
ok_command 
end_command 
else_command 
nop_command 

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

Function Documentation

◆ execute_control_command()

enum command_control_type execute_control_command ( struct command_line * cmd,
int from_tty = 0 )
extern

◆ execute_control_command_untraced()

enum command_control_type execute_control_command_untraced ( struct command_line * cmd)
extern

◆ execute_control_commands()

void execute_control_commands ( struct command_line * cmdlines,
int from_tty )
extern

◆ execute_control_commands_to_string()

std::string execute_control_commands_to_string ( struct command_line * commands,
int from_tty )
extern

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

References execute_control_commands(), and execute_fn_to_string().

◆ execute_user_command()

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

◆ free_command_lines()

void free_command_lines ( struct command_line ** lptr)
extern

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

Referenced by command_lines_deleter::operator()().

◆ get_command_line()

counted_command_line get_command_line ( enum command_control_type,
const char * arg )
extern

◆ insert_user_defined_cmd_args()

std::string insert_user_defined_cmd_args ( const char * line)
extern

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

References command_line::line, and user_args_stack.

Referenced by eval_command(), and execute_control_command_1().

◆ print_command_lines()

void print_command_lines ( struct ui_out * uiout,
struct command_line * cmd,
unsigned int depth )
extern

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

◆ print_command_trace()

void print_command_trace ( const char * cmd,
... )
extern

◆ read_command_lines()

counted_command_line read_command_lines ( const char * prompt_arg,
int from_tty,
int parse_commands,
gdb::function_view< void(const char *)> validator )
extern

◆ read_command_lines_1()

counted_command_line read_command_lines_1 ( read_next_line_ftype read_next_line_func,
int parse_commands,
gdb::function_view< void(const char *)> validator )
extern

◆ reset_command_nest_depth()

void void reset_command_nest_depth ( void )
extern

Definition at line 468 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 )
extern

◆ show_user_1()

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