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 cli/cli-script.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	tromey@sourceware.org	2013-05-30 17:36:30

Modified files:
	gdb            : ChangeLog 
	gdb/cli        : cli-script.c 

Log message:
	fix cli-script.c
	
	read_command_lines_1 had some (IMNSHO) spaghetti-ish code for cleanup
	handling.  This makes the code much simpler to understand, by
	introducing an outer cleanup.
	
	This is another case where a stylistic change for the checker is also
	nice for the reader.
	
	* cli/cli-script.c (read_command_lines_1): Use a null cleanup
	for 'old_chain'.  Do not check 'head' before processing
	cleanups.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15669&r2=1.15670
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/cli/cli-script.c.diff?cvsroot=src&r1=1.82&r2=1.83


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