aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
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/ChangeLog
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/ChangeLog')
-rw-r--r--gdb/ChangeLog12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 108bcca..d92f194 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,15 @@
+2013-08-27 Yao Qi <yao@codesourcery.com>
+
+ * 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.
+
2013-08-26 Doug Evans <dje@google.com>
PR symtab/15885