aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-06-03 13:20:56 +0800
committerYao Qi <yao@codesourcery.com>2014-06-04 13:30:44 +0800
commit90a45c4d5f59bf512cc101802fbfb430f7e9248f (patch)
treea5003a4c12c51d4e908dfb65a0913b0cda52d184 /gdb
parent70017e417c365ee1a27f2894678b06731ebb4d15 (diff)
downloadgdb-90a45c4d5f59bf512cc101802fbfb430f7e9248f.zip
gdb-90a45c4d5f59bf512cc101802fbfb430f7e9248f.tar.gz
gdb-90a45c4d5f59bf512cc101802fbfb430f7e9248f.tar.bz2
Fix a regexp pattern in gdb.base/auto-connect-native-target.exp
When I test gdb head (for 7.8 release) on arm-none-eabi, I find the following this failure, which are caused by the improper regexp pattern in the test. (gdb) help target native^M Undefined target command: "native". Try "help target".^M (gdb) FAIL: gdb.base/auto-connect-native-target.exp: help target native The space in front of "$gdb_prompt $" looks redundant, and this patch is to remove it from the regexp pattern. gdb/testsuite: 2014-06-04 Yao Qi <yao@codesourcery.com> * gdb.base/auto-connect-native-target.exp: Remove redundant space from the regexp pattern.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/auto-connect-native-target.exp2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index d8b9737..e15237c 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2014-06-04 Yao Qi <yao@codesourcery.com>
+ * gdb.base/auto-connect-native-target.exp: Remove redundant
+ space from the regexp pattern.
+
+2014-06-04 Yao Qi <yao@codesourcery.com>
+
* gdb.base/default.exp: Replace "child" with "native" in
regexp pattern.
diff --git a/gdb/testsuite/gdb.base/auto-connect-native-target.exp b/gdb/testsuite/gdb.base/auto-connect-native-target.exp
index ac8c79f..79febe3 100644
--- a/gdb/testsuite/gdb.base/auto-connect-native-target.exp
+++ b/gdb/testsuite/gdb.base/auto-connect-native-target.exp
@@ -27,7 +27,7 @@ set have_native 0
set test "help target native"
gdb_test_multiple $test $test {
- -re "Undefined target command.* $gdb_prompt $" {
+ -re "Undefined target command.*$gdb_prompt $" {
set have_native 0
}
-re "Native process.*$gdb_prompt $" {