aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-09-21 20:01:12 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-09-21 20:01:12 +0000
commit04e7407c59ad047ff7df4084a904d29fbeb62315 (patch)
tree56752cc3165ee9c89e88b64046237cdb41342115 /gdb/testsuite/lib
parent9bf4bce9847504467f8af7e3c7886cce1794dbad (diff)
downloadgdb-04e7407c59ad047ff7df4084a904d29fbeb62315.zip
gdb-04e7407c59ad047ff7df4084a904d29fbeb62315.tar.gz
gdb-04e7407c59ad047ff7df4084a904d29fbeb62315.tar.bz2
gdb/
Fix internal error on canonicalization of clang types. * cp-name-parser.y (operator): New comment at make_operator call for new, delete, new[] and delete[]. (exp): Use "sizeof ". Add new comment at make_operator call. gdb/testsuite/ Fix internal error on canonicalization of clang types. * gdb.dwarf2/dw2-canonicalize-type.S: New file. * gdb.dwarf2/dw2-canonicalize-type.exp: New file. * lib/gdb.exp (gdb_file_cmd): Catch also GDB internal error.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 0b4c679..8715c5e 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -1277,6 +1277,11 @@ proc gdb_file_cmd { arg } {
perror "($arg) No such file or directory"
return -1
}
+ -re "A problem internal to GDB has been detected" {
+ fail "($arg) GDB internal error"
+ gdb_internal_error_resync
+ return -1
+ }
-re "$gdb_prompt $" {
perror "couldn't load $arg into $GDB."
return -1