aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.h
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-08-27 03:04:45 +0000
committerYao Qi <yao@codesourcery.com>2013-08-27 03:04:45 +0000
commit242f1fd7ee29538968e32155c99a36c3d7604eb5 (patch)
tree63842883ad96777ca1f546e358c1456d6fea4618 /gdb/valprint.h
parente5034e59e04c90d3a0b6c78af0cbfd3f73eb7809 (diff)
downloadgdb-242f1fd7ee29538968e32155c99a36c3d7604eb5.zip
gdb-242f1fd7ee29538968e32155c99a36c3d7604eb5.tar.gz
gdb-242f1fd7ee29538968e32155c99a36c3d7604eb5.tar.bz2
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.
Diffstat (limited to 'gdb/valprint.h')
0 files changed, 0 insertions, 0 deletions