aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-02-28 13:32:23 +0100
committerTom de Vries <tdevries@suse.de>2023-02-28 13:32:23 +0100
commit7226dd9faabbe6987e5910483374752ca7934255 (patch)
treefc83dd7fe064f9ee5e3edd12651b401dd3805764 /gdb
parent2968b79fca38cf18e8eef360c36de7a6e3846d3c (diff)
downloadbinutils-7226dd9faabbe6987e5910483374752ca7934255.zip
binutils-7226dd9faabbe6987e5910483374752ca7934255.tar.gz
binutils-7226dd9faabbe6987e5910483374752ca7934255.tar.bz2
[gdb/testsuite] Fix gdb.rust/watch.exp on ppc64le
On x86_64-linux, I have: ... (gdb) watch -location y^M Hardware watchpoint 2: -location y^M (gdb) PASS: gdb.rust/watch.exp: watch -location y ... but on powerpc64le-linux, I run into: ... (gdb) watch -location y^M Watchpoint 2: -location y^M (gdb) FAIL: gdb.rust/watch.exp: watch -location y ... due to the regexp matching "Hardware watchpoint" but not "Watchpoint": ... gdb_test "watch -location y" ".*watchpoint .* -location .*" ... Fix this by making the regexp less restrictive. Tested on x86_64-linux and powerpc64le-linux.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.rust/watch.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.rust/watch.exp b/gdb/testsuite/gdb.rust/watch.exp
index 83cb41c..43c88f8 100644
--- a/gdb/testsuite/gdb.rust/watch.exp
+++ b/gdb/testsuite/gdb.rust/watch.exp
@@ -30,4 +30,4 @@ if {![runto ${srcfile}:$line]} {
}
# Just setting a watchpoint was enough to trigger the bug.
-gdb_test "watch -location y" ".*watchpoint .* -location .*"
+gdb_test "watch -location y" ".*\[wW\]atchpoint .* -location .*"