OSDN Git Service

Refactor reading of commands
authorvprus <vprus>
Mon, 3 Aug 2009 12:26:37 +0000 (12:26 +0000)
committervprus <vprus>
Mon, 3 Aug 2009 12:26:37 +0000 (12:26 +0000)
commit61ed9ac5a5b5e0e0aa3685d700ae1eaf1f5af255
treed2232d5a8b82afa9b17897ee404ffac15737a006
parent5b95ec98d7c8c98a7d1cbf2c546c78e6c849a2a3
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.
gdb/ChangeLog
gdb/cli/cli-script.c
gdb/defs.h
gdb/testsuite/gdb.mi/mi-var-cmd.exp