GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Functions
cli-utils.h File Reference
#include "completer.h"

Go to the source code of this file.

Classes

class  number_or_range_parser
 
struct  qcs_flags
 

Functions

int get_number_trailer (const char **pp, int trailer)
 
int get_number (const char **)
 
int get_number (char **)
 
ULONGEST get_ulongest (const char **pp, int trailer='\0')
 
void report_unrecognized_option_error (const char *command, const char *args)
 
const char * info_print_args_help (const char *prefix, const char *entity_kind, bool document_n_flag)
 
int number_is_in_list (const char *list, int number)
 
const char * remove_trailing_whitespace (const char *start, const char *s)
 
static char * remove_trailing_whitespace (const char *start, char *s)
 
std::string extract_arg (char **arg)
 
std::string extract_arg (const char **arg)
 
int check_for_argument (const char **str, const char *arg, int arg_len)
 
static int check_for_argument (const char **str, const char *arg)
 
static int check_for_argument (char **str, const char *arg, int arg_len)
 
static int check_for_argument (char **str, const char *arg)
 
void validate_flags_qcs (const char *which_command, qcs_flags *flags)
 

Function Documentation

◆ check_for_argument() [1/4]

static int check_for_argument ( char ** str,
const char * arg )
inlinestatic

Definition at line 208 of file cli-utils.h.

References check_for_argument().

◆ check_for_argument() [2/4]

static int check_for_argument ( char ** str,
const char * arg,
int arg_len )
inlinestatic

Definition at line 201 of file cli-utils.h.

References check_for_argument().

◆ check_for_argument() [3/4]

static int check_for_argument ( const char ** str,
const char * arg )
inlinestatic

Definition at line 193 of file cli-utils.h.

References check_for_argument().

◆ check_for_argument() [4/4]

int check_for_argument ( const char ** str,
const char * arg,
int arg_len )
extern

◆ extract_arg() [1/2]

std::string extract_arg ( char ** arg)
extern

Definition at line 408 of file cli-utils.c.

References extract_arg().

◆ extract_arg() [2/2]

std::string extract_arg ( const char ** arg)
extern

◆ get_number() [1/2]

int get_number ( char ** pp)
extern

Definition at line 171 of file cli-utils.c.

References get_number_trailer().

◆ get_number() [2/2]

int get_number ( const char ** pp)
extern

◆ get_number_trailer()

int get_number_trailer ( const char ** pp,
int trailer )
extern

◆ get_ulongest()

ULONGEST get_ulongest ( const char ** pp,
int trailer = '\0' )
extern

◆ info_print_args_help()

const char * info_print_args_help ( const char * prefix,
const char * entity_kind,
bool document_n_flag )

Definition at line 196 of file cli-utils.c.

References prefix.

◆ number_is_in_list()

int number_is_in_list ( const char * list,
int number )
extern

◆ remove_trailing_whitespace() [1/2]

static char * remove_trailing_whitespace ( const char * start,
char * s )
inlinestatic

Definition at line 167 of file cli-utils.h.

References remove_trailing_whitespace().

◆ remove_trailing_whitespace() [2/2]

const char * remove_trailing_whitespace ( const char * start,
const char * s )
extern

◆ report_unrecognized_option_error()

void report_unrecognized_option_error ( const char * command,
const char * args )
extern

Definition at line 184 of file cli-utils.c.

References extract_arg().

Referenced by demangle_command(), and info_macro_command().

◆ validate_flags_qcs()

void validate_flags_qcs ( const char * which_command,
qcs_flags * flags )
extern