This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] testsuite/gdb.c++/inherit.exp: accept VTT clauses in output
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 20 May 2002 00:13:09 -0500
- Subject: [patch] testsuite/gdb.c++/inherit.exp: accept VTT clauses in output
This patch enhances gdb.c++/inherit.exp to optionally accept "VTT for
..." clauses in some output strings. I accept either no value at all
(the old expectation), or the correct class name, but not an incorrect
class name.
This is not a systematic enhancement. I changed only one place where
the results were regressing.
I tested this in my test bed (native i686-pc-linux-gnu, six versions of g++,
dwarf-2 and stabs+).
I am committing this now.
Michael C
2002-05-19 Michael Chastain <mec@shout.net>
* gdb.c++/inherit.exp: Accept "VTT for ..." in output strings.
Index: gdb.c++/inherit.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.c++/inherit.exp,v
retrieving revision 1.6
diff -c -3 -p -r1.6 inherit.exp
*** gdb.c++/inherit.exp 20 Jan 2002 19:46:32 -0000 1.6
--- gdb.c++/inherit.exp 20 May 2002 05:11:46 -0000
*************** proc test_print_mvi_classes {} {
*** 993,999 ****
-re ".* = \{\<vD\> = \{\<vB\> = \{\<vA\> = \{va = 0, vx = 0\}, ${vbptr}vA = $hex, vb = 0, vx = 0\}, \<vC\> = \{${vbptr}vA = $hex, vc = 0, vx = 0\}, ${vbptr}vC = $hex, ${vbptr}vB = $hex, vd = 0, vx = 0\}, ${vbptr}vD = $hex, ve = 27, vx = 28\}$nl$gdb_prompt $" {
pass "print g_vE"
}
! -re ".* = \{\<vD\> = \{\<vB\> = \{\<vA\> = \{va = 0, vx = 0\}, _vptr.vB = $hex, vb = 0, vx = 0\}, \<vC\> = \{_vptr.vC = $hex, vc = 0, vx = 0\}, _vptr.vD = $hex, vd = 0, vx = 0\}, _vptr.vE = $hex, ve = 27, vx = 28\}$nl$gdb_prompt $" {
pass "print g_vE (FIXME v3 vtbl ptr)"
}
-re ".*$gdb_prompt $" { fail "print g_vE" }
--- 993,999 ----
-re ".* = \{\<vD\> = \{\<vB\> = \{\<vA\> = \{va = 0, vx = 0\}, ${vbptr}vA = $hex, vb = 0, vx = 0\}, \<vC\> = \{${vbptr}vA = $hex, vc = 0, vx = 0\}, ${vbptr}vC = $hex, ${vbptr}vB = $hex, vd = 0, vx = 0\}, ${vbptr}vD = $hex, ve = 27, vx = 28\}$nl$gdb_prompt $" {
pass "print g_vE"
}
! -re ".* = \{\<vD\> = \{\<vB\> = \{\<vA\> = \{va = 0, vx = 0\}, _vptr.vB = $hex *(\<VTT for vD\>)?, vb = 0, vx = 0\}, \<vC\> = \{_vptr.vC = $hex *(\<VTT for vD\>)?, vc = 0, vx = 0\}, _vptr.vD = $hex, vd = 0, vx = 0\}, _vptr.vE = $hex, ve = 27, vx = 28\}$nl$gdb_prompt $" {
pass "print g_vE (FIXME v3 vtbl ptr)"
}
-re ".*$gdb_prompt $" { fail "print g_vE" }