GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Member Functions | Friends | List of all members
command_line Struct Reference

#include "cli-script.h"

Public Member Functions

 command_line (command_control_type type_, char *line_=nullptr)
 
 DISABLE_COPY_AND_ASSIGN (command_line)
 

Public Attributes

struct command_linenext = nullptr
 
char * line
 
enum command_control_type control_type
 
union { 
 
   struct { 
 
      enum compile_i_scope_types   scope 
 
      void *   scope_data 
 
   }   compile 
 
control_u 
 
counted_command_line body_list_0
 
counted_command_line body_list_1
 

Private Member Functions

 ~command_line ()
 

Friends

void free_command_lines (struct command_line **)
 

Detailed Description

Structure for saved commands lines (for breakpoints, defined commands, etc).

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

Constructor & Destructor Documentation

◆ command_line()

command_line::command_line ( command_control_type type_,
char * line_ = nullptr )
inlineexplicit

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

References control_u.

◆ ~command_line()

command_line::~command_line ( )
inlineprivate

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

References line, and xfree().

Member Function Documentation

◆ DISABLE_COPY_AND_ASSIGN()

command_line::DISABLE_COPY_AND_ASSIGN ( command_line )

Friends And Related Symbol Documentation

◆ free_command_lines

void free_command_lines ( struct command_line ** )
friend

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

Member Data Documentation

◆ body_list_0

counted_command_line command_line::body_list_0

For composite commands, the nested lists of commands. For example, for "if" command this will contain the then branch and the else branch, if that is available.

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

Referenced by check_no_tracepoint_commands(), commands_command_1(), compile_to_object(), encode_actions_1(), execute_control_command_1(), print_command_lines(), recurse_read_control_structure(), remote_target::remote_download_command_source(), trace_dump_actions(), and validate_commands_for_breakpoint().

◆ body_list_1

counted_command_line command_line::body_list_1

◆ [struct]

struct { ... } command_line::compile

◆ control_type

enum command_control_type command_line::control_type

◆ [union]

union { ... } command_line::control_u

◆ line

char* command_line::line

◆ next

struct command_line* command_line::next = nullptr

◆ scope

enum compile_i_scope_types command_line::scope

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

Referenced by eval_compile_command(), and execute_control_command_1().

◆ scope_data

void* command_line::scope_data

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

Referenced by eval_compile_command(), and execute_control_command_1().


The documentation for this struct was generated from the following file: