aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-03-12 14:36:43 -0700
committerTom Tromey <tom@tromey.com>2022-03-12 14:37:37 -0700
commit4775334c6f6c18584d9f1aff6b63b2b0fcf6ccab (patch)
tree53270c98dcc377ad50c9c70534a803add86d84c5
parent9fb67c234571418221e3a4b77e1fbae2bc9fc85e (diff)
downloadgdb-4775334c6f6c18584d9f1aff6b63b2b0fcf6ccab.zip
gdb-4775334c6f6c18584d9f1aff6b63b2b0fcf6ccab.tar.gz
gdb-4775334c6f6c18584d9f1aff6b63b2b0fcf6ccab.tar.bz2
Relax regexp in gdb.rust/unsized.exp
With nightly rustc, gdb.rust/unsized.exp fails: (gdb) ptype *us Structure has no component named operator*. rustc changed to emit a bit more debug info for unsized types. Because the original test is just to make sure that ptype of an unsized array looks right, this patch relaxes the regexp and changes the expression. I think this keeps the original test meaning, but also works with nightly. I also tested stable and 1.48.
-rw-r--r--gdb/testsuite/gdb.rust/unsized.exp3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.rust/unsized.exp b/gdb/testsuite/gdb.rust/unsized.exp
index 388e172..76d0bbb 100644
--- a/gdb/testsuite/gdb.rust/unsized.exp
+++ b/gdb/testsuite/gdb.rust/unsized.exp
@@ -31,5 +31,4 @@ if {![runto ${srcfile}:$line]} {
return -1
}
-gdb_test "ptype *us" \
- " = struct \[a-z:\]*V<\\\[u8\\\]> {.* data: \\\[u8\\\],.*}"
+gdb_test "ptype us" " = .*V<\\\[u8\\\]>.*"