mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-23 13:21:43 +08:00
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.
This commit is contained in:
parent
9fb67c2345
commit
4775334c6f
@ -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\\\]>.*"
|
||||
|
Loading…
Reference in New Issue
Block a user