Add mi_getopt_allow_unknown
authorYao Qi <yao@codesourcery.com>
Tue, 27 Aug 2013 03:04:45 +0000 (03:04 +0000)
committerYao Qi <yao@codesourcery.com>
Tue, 27 Aug 2013 03:04:45 +0000 (03:04 +0000)
commit242f1fd7ee29538968e32155c99a36c3d7604eb5
tree63842883ad96777ca1f546e358c1456d6fea4618
parente5034e59e04c90d3a0b6c78af0cbfd3f73eb7809
Add mi_getopt_allow_unknown

This patch is to add a new function mi_getopt_allow_unknown, which
returns -1 silently (without throwing error) when unknown option is
met, and use this function to parse options for command
'-stack-list-arguments'.

gdb/
* mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
(mi_cmd_stack_list_args): Use mi_getopt_silent to handle
options.
* mi/mi-getopt.c (mi_getopt): Remove.
(mi_getopt_1): Renamed from mi_getopt.  Add one parameter
'error_on_unknown'.
(mi_getopt): Call mi_getopt_1.
(mi_getopt_silent): New.
* mi/mi-getopt.h (mi_getopt_silent): Declare.
gdb/ChangeLog
gdb/mi/mi-cmd-stack.c
gdb/mi/mi-getopt.c
gdb/mi/mi-getopt.h
This page took 0.026613 seconds and 4 git commands to generate.