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


CVSROOT:	/cvs/src
Module name:	src
Changes by:	vprus@sourceware.org	2009-08-03 12:26:37

Modified files:
	gdb            : ChangeLog defs.h 
	gdb/cli        : cli-script.c 
	gdb/testsuite/gdb.mi: mi-var-cmd.exp 

Log message:
	Refactor reading of commands
	
	* defs.h (read_command_lines_1): Declare.
	* cli/cli-script.c (read_next_line): Only return string,
	do not process.
	(process_next_line): New, extracted from read_next_line.
	(recurse_read_control_structure): Take a function pointer to the
	read function.
	(get_command_line) Pass the read_next_line as reader function
	into recurse_read_control_structure.
	(read_command_lines_1): New, extracted from...
	(read_command_lines): ...here.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.10774&r2=1.10775
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/defs.h.diff?cvsroot=src&r1=1.253&r2=1.254
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/cli/cli-script.c.diff?cvsroot=src&r1=1.52&r2=1.53
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.mi/mi-var-cmd.exp.diff?cvsroot=src&r1=1.43&r2=1.44


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