GDB (xrefs)
Loading...
Searching...
No Matches
Functions
cli-utils.c File Reference
#include "defs.h"
#include "cli/cli-utils.h"
#include "value.h"
#include <ctype.h>

Go to the source code of this file.

Functions

ULONGEST get_ulongest (const char **pp, int trailer)
 
int get_number_trailer (const char **pp, int trailer)
 
int get_number (const char **pp)
 
int get_number (char **pp)
 
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)
 
std::string extract_arg (const char **arg)
 
std::string extract_arg (char **arg)
 
int check_for_argument (const char **str, const char *arg, int arg_len)
 
void validate_flags_qcs (const char *which_command, qcs_flags *flags)
 

Function Documentation

◆ check_for_argument()

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

◆ extract_arg() [1/2]

std::string extract_arg ( char ** arg)

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

References extract_arg().

◆ extract_arg() [2/2]

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

◆ get_number() [1/2]

int get_number ( char ** pp)

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

References get_number_trailer().

◆ get_number() [2/2]

int get_number ( const char ** pp)

◆ get_number_trailer()

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

◆ get_ulongest()

ULONGEST get_ulongest ( const char ** pp,
int trailer )

◆ 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 )

◆ remove_trailing_whitespace()

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

◆ report_unrecognized_option_error()

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

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 )