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/sim/ppc ChangeLog psim.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2011-06-08 16:44:28

Modified files:
	sim/ppc        : ChangeLog psim.c 

Log message:
	ppc sim: Improve invalid option error message
	
	This patch improves the error message when an invalid option is
	detected, by also printing the option that actually caused the error.
	For instance, from GDB:
	
	(gdb) target sim --hello
	Invalid option: --hello
	Usage:
	[...]
	
	We also added the usage after an invalid long-name option (Eg: --hello)
	to be in line with what's being done for all other invalid options
	being detected.
	
	sim/ppc/ChangeLog:
	
	* psim.c (psim_options): Add option that cause the error
	in invalid-option error messages. Print the usage when
	detecting an invalid long-name option.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/ppc/ChangeLog.diff?cvsroot=src&r1=1.107&r2=1.108
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/ppc/psim.c.diff?cvsroot=src&r1=1.9&r2=1.10


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