GDB (xrefs)

Classes | Functions
cli-utils.h File Reference

Go to the source code of this file.

## Classes
class | number_or_range_parser

## Functions
int | get_number_trailer (const char **pp, int trailer)
int | get_number (const char **)
int | get_number (char **)
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 (char **str, const char *arg, int arg_len)

## Function Documentation

## ◆ check_for_argument() [1/2]

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

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

Referenced by agent_command_1(), check_for_argument(), check_raw_argument(), compile_code_command(), extract_exception_regexp(), info_threads_command(), thread_apply_all_command(), and watch_maybe_just_location().

## ◆ check_for_argument() [2/2]

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

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

References check_for_argument().

## ◆ extract_arg() [1/2]

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

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

References extract_arg(), and string.

## ◆ extract_arg() [2/2]

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

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

References skip_spaces(), skip_to_space(), and string.

Referenced by catch_signal_split_args(), demangle_command(), enable_disable_command(), extract_arg(), mem_command(), mi_parse(), and parse_probe_linespec().

## ◆ get_number() [1/2]

int get_number | ( | const char ** |  | ) |

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

References get_number_trailer().

Referenced by adi_assign_command(), adi_examine_command(), condition_command(), enable_count_command(), get_tracepoint_by_number(), goto_bookmark_command(), and ignore_command().

## ◆ get_number() [2/2]

int get_number | ( | char ** |  | ) |

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

References get_number_trailer().

## ◆ get_number_trailer()

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

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

References _, get_internalvar_integer(), lookup_internalvar(), printf_filtered(), skip_spaces(), TYPE_CODE, TYPE_CODE_INT, value_as_long(), value_from_history_ref(), and value_type().

Referenced by extract_bp_num(), get_number(), number_or_range_parser::get_number(), and get_positive_number_trailer().

## ◆ number_is_in_list()

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

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

References _, error(), number_or_range_parser::finished(), and number_or_range_parser::get_number().

Referenced by breakpoint_1(), info_skip_command(), print_inferior(), record_btrace_open(), should_print_thread(), skip_delete_command(), skip_disable_command(), and skip_enable_command().

## ◆ remove_trailing_whitespace() [1/2]

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

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

Referenced by copy_token_string(), new_linespec_location(), remove_trailing_whitespace(), and set_gnutarget_command().

## ◆ remove_trailing_whitespace() [2/2]

static char* remove_trailing_whitespace | ( | const char * | start,
|  | char * | s
| ) |  |
| inline static

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

References remove_trailing_whitespace().