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

#include "mi-parse.h"

Public Member Functions

 mi_parse (const char *cmd, std::string *token)
 
 mi_parse (gdb::unique_xmalloc_ptr< char > command, std::vector< gdb::unique_xmalloc_ptr< char > > args)
 
 ~mi_parse ()
 
 DISABLE_COPY_AND_ASSIGN (mi_parse)
 
void parse_argv ()
 
const char * args ()
 

Public Attributes

enum mi_command_type op = MI_COMMAND
 
gdb::unique_xmalloc_ptr< char > command
 
std::string token
 
const struct mi_commandcmd = nullptr
 
struct mi_timestampcmd_start = nullptr
 
char ** argv = nullptr
 
int argc = 0
 
int all = 0
 
int thread_group = -1
 
int thread = -1
 
int frame = -1
 
enum language language = language_unknown
 

Private Member Functions

void set_thread_group (const char *arg, char **endp)
 
void set_thread (const char *arg, char **endp)
 
void set_frame (const char *arg, char **endp)
 
void set_language (const char *arg, const char **endp)
 

Private Attributes

std::string m_args
 

Detailed Description

Definition at line 42 of file mi-parse.h.

Constructor & Destructor Documentation

◆ mi_parse() [1/2]

mi_parse::mi_parse ( const char * cmd,
std::string * token )

◆ mi_parse() [2/2]

mi_parse::mi_parse ( gdb::unique_xmalloc_ptr< char > command,
std::vector< gdb::unique_xmalloc_ptr< char > > args )

◆ ~mi_parse()

mi_parse::~mi_parse ( )

Definition at line 216 of file mi-parse.c.

References argv.

Member Function Documentation

◆ args()

const char * mi_parse::args ( )

◆ DISABLE_COPY_AND_ASSIGN()

mi_parse::DISABLE_COPY_AND_ASSIGN ( mi_parse )

◆ parse_argv()

void mi_parse::parse_argv ( )

Definition at line 110 of file mi-parse.c.

References argc, argv, m_args, and mi_parse_escape().

Referenced by mi_command_mi::invoke(), and mi_command_py::invoke().

◆ set_frame()

void mi_parse::set_frame ( const char * arg,
char ** endp )
private

Definition at line 268 of file mi-parse.c.

References frame.

Referenced by mi_parse(), and mi_parse().

◆ set_language()

void mi_parse::set_language ( const char * arg,
const char ** endp )
private

Definition at line 278 of file mi-parse.c.

References extract_arg(), language_enum(), and language_unknown.

Referenced by mi_parse(), and mi_parse().

◆ set_thread()

void mi_parse::set_thread ( const char * arg,
char ** endp )
private

Definition at line 258 of file mi-parse.c.

References thread.

Referenced by mi_parse(), and mi_parse().

◆ set_thread_group()

void mi_parse::set_thread_group ( const char * arg,
char ** endp )
private

Definition at line 245 of file mi-parse.c.

References thread_group.

Referenced by mi_parse(), and mi_parse().

Member Data Documentation

◆ all

int mi_parse::all = 0

◆ argc

int mi_parse::argc = 0

Definition at line 76 of file mi-parse.h.

Referenced by args(), mi_command_mi::invoke(), mi_command_py::invoke(), mi_parse(), and parse_argv().

◆ argv

char** mi_parse::argv = nullptr

◆ cmd

const struct mi_command* mi_parse::cmd = nullptr

◆ cmd_start

struct mi_timestamp* mi_parse::cmd_start = nullptr

Definition at line 74 of file mi-parse.h.

Referenced by captured_mi_execute_command().

◆ command

gdb::unique_xmalloc_ptr<char> mi_parse::command

◆ frame

int mi_parse::frame = -1

◆ language

enum language mi_parse::language = language_unknown

Definition at line 84 of file mi-parse.h.

Referenced by mi_cmd_execute().

◆ m_args

std::string mi_parse::m_args
private

Definition at line 97 of file mi-parse.h.

Referenced by args(), mi_parse(), and parse_argv().

◆ op

enum mi_command_type mi_parse::op = MI_COMMAND

Definition at line 68 of file mi-parse.h.

Referenced by captured_mi_execute_command(), mi_execute_command(), mi_parse(), and mi_parse().

◆ thread

int mi_parse::thread = -1

Definition at line 79 of file mi-parse.h.

Referenced by mi_cmd_execute(), and set_thread().

◆ thread_group

int mi_parse::thread_group = -1

Definition at line 78 of file mi-parse.h.

Referenced by exec_continue(), mi_cmd_exec_interrupt(), mi_cmd_execute(), and set_thread_group().

◆ token

std::string mi_parse::token

Definition at line 72 of file mi-parse.h.

Referenced by captured_mi_execute_command(), mi_execute_command(), mi_parse(), and mi_parse().


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