summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.c++/virtfunc.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.c++/virtfunc.exp')
-rw-r--r--gdb/testsuite/gdb.c++/virtfunc.exp32
1 files changed, 31 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.c++/virtfunc.exp b/gdb/testsuite/gdb.c++/virtfunc.exp
index e182744c167..dd73cabf6c1 100644
--- a/gdb/testsuite/gdb.c++/virtfunc.exp
+++ b/gdb/testsuite/gdb.c++/virtfunc.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 1992, 1994, 1997 Free Software Foundation, Inc.
+# Copyright (C) 1992, 1994, 1997, 1999 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -34,6 +34,7 @@ if [get_compiler_info ${binfile} "c++"] {
return -1
}
+source ${binfile}.ci
# Check to see if we have an executable to test. If not, then either we
# haven't tried to compile one, or the compilation failed for some reason.
@@ -678,6 +679,7 @@ proc test_virtual_calls {} {
global gdb_prompt
global GDB
global nl
+ global gcc_compiled
if [target_info exists gdb,cannot_call_functions] {
setup_xfail "*-*-*" 2416
@@ -685,6 +687,12 @@ proc test_virtual_calls {} {
return 0
}
+ # FIXME: In fall 1998, GCC's virtual function type info was changed,
+ # which causes GDB to be unable to resolve these calls. Until the
+ # problem is fixed, XFAIL these tests. -sts 1999-08-02
+
+ if {$gcc_compiled} then { setup_xfail "*-*-*" }
+
send_gdb "print pAe->f()\n"
gdb_expect {
-re ".* = 20$nl$gdb_prompt $" { pass "print pAe->f()" }
@@ -706,6 +714,8 @@ proc test_virtual_calls {} {
eof { fail "print pAe->f() ($GDB dumped core) (FIXME)" ; gdb_virtfunc_restart; return }
}
+ if {$gcc_compiled} then { setup_xfail "*-*-*" }
+
send_gdb "print pAa->f()\n"
gdb_expect {
-re ".* = 1$nl$gdb_prompt $" { pass "print pAa->f()" }
@@ -718,6 +728,8 @@ proc test_virtual_calls {} {
eof { fail "print pAa->f() ($GDB dumped core) (FIXME)" ; gdb_virtfunc_restart; return }
}
+ if {$gcc_compiled} then { setup_xfail "*-*-*" }
+
send_gdb "print pDe->vg()\n"
gdb_expect {
-re ".* = 202$nl$gdb_prompt $" { pass "print pDe->vg()" }
@@ -730,6 +742,8 @@ proc test_virtual_calls {} {
eof { fail "print pDe->vg() ($GDB dumped core) (FIXME)" ; gdb_virtfunc_restart; return }
}
+ if {$gcc_compiled} then { setup_xfail "*-*-*" }
+
send_gdb "print pADe->vg()\n"
gdb_expect {
-re ".* = 202$nl$gdb_prompt $" { pass "print pADe->vg()" }
@@ -742,6 +756,8 @@ proc test_virtual_calls {} {
eof { fail "print pADe->vg() ($GDB dumped core) (FIXME)" ; gdb_virtfunc_restart; return }
}
+ if {$gcc_compiled} then { setup_xfail "*-*-*" }
+
send_gdb "print pDd->vg()\n"
gdb_expect {
-re ".* = 101$nl$gdb_prompt $" { pass "print pDd->vg()" }
@@ -754,6 +770,8 @@ proc test_virtual_calls {} {
eof { fail "print pDd->vg() ($GDB dumped core) (FIXME)" ; gdb_virtfunc_restart; return }
}
+ if {$gcc_compiled} then { setup_xfail "*-*-*" }
+
send_gdb "print pEe->vvb()\n"
gdb_expect {
-re ".* = 411$nl$gdb_prompt $" { pass "print pEe->vvb()" }
@@ -766,6 +784,8 @@ proc test_virtual_calls {} {
eof { fail "print pEe->vvb() ($GDB dumped core) (FIXME)" ; gdb_virtfunc_restart; return }
}
+ if {$gcc_compiled} then { setup_xfail "*-*-*" }
+
send_gdb "print pVB->vvb()\n"
gdb_expect {
-re ".* = 407$nl$gdb_prompt $" { pass "print pVB->vvb()" }
@@ -778,6 +798,8 @@ proc test_virtual_calls {} {
eof { fail "print pVB->vvb() ($GDB dumped core) (FIXME)" ; gdb_virtfunc_restart; return }
}
+ if {$gcc_compiled} then { setup_xfail "*-*-*" }
+
send_gdb "print pBe->vvb()\n"
gdb_expect {
-re ".* = 411$nl$gdb_prompt $" { pass "print pBe->vvb()" }
@@ -790,6 +812,8 @@ proc test_virtual_calls {} {
eof { fail "print pBe->vvb() ($GDB dumped core) (FIXME)" ; gdb_virtfunc_restart; return }
}
+ if {$gcc_compiled} then { setup_xfail "*-*-*" }
+
send_gdb "print pDe->vvb()\n"
gdb_expect {
-re ".* = 411$nl$gdb_prompt $" { pass "print pDe->vvb()" }
@@ -802,6 +826,8 @@ proc test_virtual_calls {} {
eof { fail "print pDe->vvb() ($GDB dumped core) (FIXME)" ; gdb_virtfunc_restart; return }
}
+ if {$gcc_compiled} then { setup_xfail "*-*-*" }
+
send_gdb "print pEe->vd()\n"
gdb_expect {
-re ".* = 282$nl$gdb_prompt $" { pass "print pEe->vd()" }
@@ -814,6 +840,8 @@ proc test_virtual_calls {} {
eof { fail "print pEe->vd() ($GDB dumped core) (FIXME)" ; gdb_virtfunc_restart; return }
}
+ if {$gcc_compiled} then { setup_xfail "*-*-*" }
+
send_gdb "print pEe->fvb()\n"
gdb_expect {
-re ".* = 311$nl$gdb_prompt $" { pass "print pEe->fvb()" }
@@ -826,6 +854,8 @@ proc test_virtual_calls {} {
eof { fail "print pEe->fvb() ($GDB dumped core) (FIXME)" ; gdb_virtfunc_restart; return }
}
+ if {$gcc_compiled} then { setup_xfail "*-*-*" }
+
send_gdb "print pEe->D::vg()\n"
setup_xfail "*-*-*"
gdb_expect {