binutils-gdb/gdb/cli
Philippe Waroquiers 0d4cad90ca 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.
2018-10-27 13:45:57 +02:00
..
cli-cmds.c Simple -Wshadow=local fixes 2018-10-04 22:51:45 -06:00
cli-cmds.h
cli-decode.c gdb: Change how frames are selected for 'frame' and 'info frame'. 2018-09-28 11:59:34 +01:00
cli-decode.h Use counted_command_line everywhere 2018-05-04 15:58:06 -06:00
cli-dump.c Fix PR cli/23785: Check if file exists when invoking "restore FILE binary" 2018-10-18 17:39:09 -04:00
cli-interp.c Fix cli_interp::cli_uiout resource leak found by Coverity 2018-10-19 11:52:33 +01:00
cli-interp.h
cli-logging.c
cli-script.c python: Make gdb.execute("show commands") work (PR 23669) 2018-09-17 08:26:24 -04:00
cli-script.h Let gdb.execute handle multi-line commands 2018-05-04 15:58:09 -06:00
cli-setshow.c Convert observers to C++ 2018-03-19 09:37:49 -06:00
cli-setshow.h
cli-utils.c New cli-utils.h/.c function extract_info_print_args 2018-10-27 13:45:57 +02:00
cli-utils.h New cli-utils.h/.c function extract_info_print_args 2018-10-27 13:45:57 +02:00