This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog cli/cli-script.c
- From: tromey at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: Thu, 30 May 2013 17:36:30 +0000
- Subject: 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