diff options
author | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2018-07-01 22:46:41 +0200 |
---|---|---|
committer | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2018-10-27 13:45:57 +0200 |
commit | 0d4cad90ca7c4394a1799efaa79c784f84a18161 (patch) | |
tree | d1b0f869265df959bcba8f94b47442eb446520b8 /intl/textdomain.c | |
parent | 6951e9f3e219cb6867beccb48dde39530e48d582 (diff) | |
download | gdb-0d4cad90ca7c4394a1799efaa79c784f84a18161.zip gdb-0d4cad90ca7c4394a1799efaa79c784f84a18161.tar.gz gdb-0d4cad90ca7c4394a1799efaa79c784f84a18161.tar.bz2 |
New cli-utils.h/.c function extract_info_print_args
New cli-utils.h/.c function extract_info_print_args factorizes
the extraction of the args '[-q] [-t TYPEREGEXP] [NAMEREGEXP]'.
New cli-utils.h/.c function report_unrecognized_option_error
factorizes reporting an unknown option for a command.
These functions will be used by the commands
info [args|functions|locals|variables]
As extract_info_print_args will be used for 'info functions|variables' which
already have the NAMEREGEXP arg, it provides a backward compatible
behaviour.
cli-utils.c has a new static function extract_arg_maybe_quoted
that extracts an argument, possibly quoted. The behaviour of this
function is similar to the parsing done by gdb_argv.
gdb/ChangeLog
2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* cli-utils.c (extract_arg_maybe_quoted): New function.
(extract_info_print_args): New function.
(info_print_args_help): New function.
(report_unrecognized_option_error): New function.
* cli-utils.h (extract_arg_maybe_quoted): New function.
(extract_info_print_args): New function.
(info_print_args_help): New function.
(report_unrecognized_option_error): New function.
Diffstat (limited to 'intl/textdomain.c')
0 files changed, 0 insertions, 0 deletions