]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Document that the PATTERN argument to gdb_test is optional.
authorSandra Loosemore <sandra@codesourcery.com>
Fri, 25 Dec 2015 19:36:52 +0000 (11:36 -0800)
committerSandra Loosemore <sandra@codesourcery.com>
Fri, 25 Dec 2015 19:36:52 +0000 (11:36 -0800)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp

index eb355b9f60a53690cdc89330ec6d801ad62cad64..3970b2e1e3316c8f83cdc47471973631f5e885a6 100644 (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.
index 765ac839a37a82e1ac19c53466c2a6350e7a1c4e..5488c29786566c6ce67c1978efbc625fb5368ac0 100644 (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