Fix regexp pattern in gdb.base/default.exp
authorYao Qi <yao@codesourcery.com>
Tue, 3 Jun 2014 05:17:42 +0000 (13:17 +0800)
committerYao Qi <yao@codesourcery.com>
Wed, 4 Jun 2014 05:30:39 +0000 (13:30 +0800)
I see this failure on arm-none-eabi gdb testing.

target native^M
Undefined target command: "native".  Try "help target".^M
(gdb) FAIL: gdb.base/default.exp: target native

This patch is to update the regexp pattern to match "native" instead of
"child".

gdb/testsuite:

2014-06-04  Yao Qi  <yao@codesourcery.com>

* gdb.base/default.exp: Replace "child" with "native" in
regexp pattern.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/default.exp

index a772f26e2bfa8a61e6fd1db10f6c6dec2b692e04..d8b973701f6b4d9dddb7e81fac1f74779e2ada35 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-04  Yao Qi  <yao@codesourcery.com>
+
+       * gdb.base/default.exp: Replace "child" with "native" in
+       regexp pattern.
+
 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
 
        * gdb.python/py-xmethods.cc: New testcase to test xmethods.
index 3636fa3d709d224103c3cd496f35b0836f9878f2..6674df30d770f9dc0694e36981c1f1143aaab9ab 100644 (file)
@@ -747,7 +747,7 @@ gdb_test "step" "The program is not being run." "step #2"
 gdb_test "symbol-file" ".*" "symbol-file"
 
 #test target native
-gdb_test "target native" "Use the \"run\" command to start a process.*|Undefined target command: \"child\".  *Try \"help target\".*" "target native"
+gdb_test "target native" "Use the \"run\" command to start a process.*|Undefined target command: \"native\".  *Try \"help target\".*" "target native"
 
 #test target core
 send_gdb "target core\n"