This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

src/gdb ChangeLog mi/mi-cmd-stack.c mi/mi-geto ...


CVSROOT:	/cvs/src
Module name:	src
Changes by:	qiyao@sourceware.org	2013-08-27 03:04:45

Modified files:
	gdb            : ChangeLog 
	gdb/mi         : mi-cmd-stack.c mi-getopt.c mi-getopt.h 

Log message:
	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.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15931&r2=1.15932
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/mi/mi-cmd-stack.c.diff?cvsroot=src&r1=1.74&r2=1.75
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/mi/mi-getopt.c.diff?cvsroot=src&r1=1.23&r2=1.24
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/mi/mi-getopt.h.diff?cvsroot=src&r1=1.16&r2=1.17


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]