aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2003-06-30 00:12:09 +0000
committerMichael Chastain <mec@google.com>2003-06-30 00:12:09 +0000
commit3c6cb4a1a4a4876ff5794818e09bc9187d8b1a16 (patch)
tree2a81b00d87774cab411f30a7cdd0b41da15886cf
parent36f443e9a8fe4eaffef10517cdcc849e21ee2201 (diff)
downloadgdb-3c6cb4a1a4a4876ff5794818e09bc9187d8b1a16.zip
gdb-3c6cb4a1a4a4876ff5794818e09bc9187d8b1a16.tar.gz
gdb-3c6cb4a1a4a4876ff5794818e09bc9187d8b1a16.tar.bz2
2003-06-29 Michael Chastain <mec@shout.net>
* gdb.c++/inherit.exp (test_print_svi_classes): Accept gdb output of '<VTT for class>' for virtual base classes.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.c++/inherit.exp22
2 files changed, 27 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 3dd9b3c..fbd9483 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-29 Michael Chastain <mec@shout.net>
+
+ * gdb.c++/inherit.exp (test_print_svi_classes): Accept gdb
+ output of '<VTT for class>' for virtual base classes.
+
2003-06-29 Daniel Jacobowitz <drow@mvista.com>
* gdb.base/completion.exp: Tab-complete "complet" instead of
diff --git a/gdb/testsuite/gdb.c++/inherit.exp b/gdb/testsuite/gdb.c++/inherit.exp
index 86c1f83..993bfb1 100644
--- a/gdb/testsuite/gdb.c++/inherit.exp
+++ b/gdb/testsuite/gdb.c++/inherit.exp
@@ -704,6 +704,14 @@ proc test_print_svi_classes {} {
-re ".* = \{\<vA\> = \{va = 3, vx = 4\}, _vptr.vB = $hex, vb = 5, vx = 6\}$nl$gdb_prompt $" {
pass "print g_vB (FIXME v3 vtbl ptr)"
}
+ -re ".* = \{\<vA\> = \{va = 3, vx = 4\}, _vptr.vB = $hex <VTT for vB>, vb = 5, vx = 6\}$nl$gdb_prompt $" {
+ # Happens with gcc 3.3 -gstabs+
+ # Does not happen with gcc 3.2.3 -gstabs+.
+ # Does not happen gcc HEAD%20030624 (pre-3.4) -gstabs+.
+ # -- chastain 2003-06-29
+ pass "print g_vB"
+ }
+
-re ".*invalid address 0x0.*$gdb_prompt $" {
# Does not happen with gcc cygnus-2.4.5-930828
fail "print g_vB (known bug with gcc cygnus-2.4.5-930417)"
@@ -730,6 +738,13 @@ proc test_print_svi_classes {} {
-re ".* = \{\<vA\> = \{va = 7, vx = 8\}, _vptr.vC = $hex, vc = 9, vx = 10\}$nl$gdb_prompt $" {
pass "print g_vC (FIXME v3 vtbl ptr)"
}
+ -re ".* = \{\<vA\> = \{va = 7, vx = 8\}, _vptr.vC = $hex <VTT for vC>, vc = 9, vx = 10\}$nl$gdb_prompt $" {
+ # Happens with gcc 3.3 -gstabs+
+ # Does not happen with gcc 3.2.3 -gstabs+.
+ # Does not happen gcc HEAD%20030624 (pre-3.4) -gstabs+.
+ # -- chastain 2003-06-29
+ pass "print g_vC"
+ }
-re ".*$gdb_prompt $" { fail "print g_vC" }
timeout { fail "print g_vC (timeout)" }
}
@@ -906,6 +921,13 @@ proc test_print_mvi_classes {} {
-re ".* = \{\<vB\> = \{\<vA\> = \{va = 19, vx = 20\}, _vptr.vB = $hex, vb = 21, vx = 22\}, \<vC\> = \{_vptr.vC = $hex, vc = 23, vx = 24\}, _vptr.vD = $hex, vd = 25, vx = 26\}$nl$gdb_prompt $" {
pass "print g_vD (FIXME v3 vtbl ptr)"
}
+ -re ".* = \{\<vB\> = \{\<vA\> = \{va = 19, vx = 20\}, _vptr.vB = $hex, vb = 21, vx = 22\}, \<vC\> = \{_vptr.vC = $hex <VTT for vD>, vc = 23, vx = 24\}, _vptr.vD = $hex, vd = 25, vx = 26\}$nl$gdb_prompt $" {
+ # Happens with gcc 3.3 -gstabs+
+ # Does not happen with gcc 3.2.3 -gstabs+.
+ # Does not happen gcc HEAD%20030624 (pre-3.4) -gstabs+.
+ # -- chastain 2003-06-29
+ pass "print g_vD"
+ }
-re ".*invalid address 0x0.*$gdb_prompt $" {
# Does not happen with gcc cygnus-2.4.5-930828
fail "print g_vD (known bug with gcc cygnus-2.4.5-930417)"