This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH OBV] Fix a regexp pattern in gdb.base/auto-connect-native-target.exp (Re: [PATCH 8/8] Allow making GDB not automatically connect to the native target.)
- From: Yao Qi <yao at codesourcery dot com>
- To: Pedro Alves <palves at redhat dot com>, <gdb-patches at sourceware dot org>
- Date: Tue, 3 Jun 2014 13:32:53 +0800
- Subject: [PATCH OBV] Fix a regexp pattern in gdb.base/auto-connect-native-target.exp (Re: [PATCH 8/8] Allow making GDB not automatically connect to the native target.)
- Authentication-results: sourceware.org; auth=none
- References: <1395069784-7406-1-git-send-email-palves at redhat dot com> <1395069784-7406-9-git-send-email-palves at redhat dot com>
On 03/17/2014 11:23 PM, Pedro Alves wrote:
> +set test "help target native"
> +gdb_test_multiple $test $test {
> + -re "Undefined target command.* $gdb_prompt $" {
The space before "$gdb_prompt $" looks redundant and this patch
is to remove it from the regexp pattern.
> + set have_native 0
> + }
> + -re "Native process.*$gdb_prompt $" {
> + set have_native 1
> + }
> +}
--
Yao (éå)
Subject: [PATCH] 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 failure, which is 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 before "$gdb_prompt $" looks redundant, and this patch
is to remove it from the regexp pattern.
gdb/testsuite:
2014-06-03 Yao Qi <yao@codesourcery.com>
* gdb.base/auto-connect-native-target.exp: Remove redundant
space from the regexp pattern.
---
gdb/testsuite/gdb.base/auto-connect-native-target.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 $" {
--
1.9.0