src/gdb ChangeLog cli/cli-script.c

tromey@sourceware.org tromey@sourceware.org
Thu May 30 17:36:00 GMT 2013


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



More information about the Gdb-cvs mailing list