Document that the PATTERN argument to gdb_test is optional.

2015-12-25  Sandra Loosemore  <sandra@codesourcery.com>

	gdb/testsuite/
	* lib/gdb.exp (gdb_test): Update comments to clarify that the
	PATTERN argument is optional.
This commit is contained in:
Sandra Loosemore 2015-12-25 11:36:52 -08:00
parent 2023145711
commit 79fad5b803
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-12-25 Sandra Loosemore <sandra@codesourcery.com>
* lib/gdb.exp (gdb_test): Update comments to clarify that the
PATTERN argument is optional.
2015-12-24 Joel Brobecker <brobecker@adacore.com>
* lib/ada.exp (target_compile_ada_from_dir): New function.

View File

@ -959,7 +959,9 @@ proc gdb_test_multiple { command message user_code } {
# COMMAND is the command to execute, send to GDB with send_gdb. If
# this is the null string no command is sent.
# PATTERN is the pattern to match for a PASS, and must NOT include
# the \r\n sequence immediately before the gdb prompt.
# the \r\n sequence immediately before the gdb prompt. This argument
# may be omitted to just match the prompt, ignoring whatever output
# precedes it.
# MESSAGE is an optional message to be printed. If this is
# omitted, then the pass/fail messages use the command string as the
# message. (If this is the empty string, then sometimes we don't