aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/virtfunc.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-11-12 17:08:09 +0000
committerTom Tromey <tromey@redhat.com>2012-11-12 17:08:09 +0000
commitb3720c3afd7fc68cf30b2ce40a8f0ccddc8f5069 (patch)
tree05f57e6a7ea6dfbc54a07c3feaf8da1f71166150 /gdb/testsuite/gdb.cp/virtfunc.exp
parent8f5846c8afb497bf9e6576de75b02a0b1fd03643 (diff)
downloadfsf-binutils-gdb-b3720c3afd7fc68cf30b2ce40a8f0ccddc8f5069.zip
fsf-binutils-gdb-b3720c3afd7fc68cf30b2ce40a8f0ccddc8f5069.tar.gz
fsf-binutils-gdb-b3720c3afd7fc68cf30b2ce40a8f0ccddc8f5069.tar.bz2
* gdb.cp/classes.exp (test_ptype_class_objects): Remove
"ptype" from calls to cp_test_ptype_class. (test_enums): Likewise. * gdb.cp/derivation.exp: Remove "ptype" from calls to cp_test_ptype_class. * gdb.cp/inherit.exp (test_ptype_si): Remove "ptype" from calls to cp_test_ptype_class. (test_ptype_mi, test_ptype_vi, test_ptype_mvi): Likewise. * gdb.cp/virtfunc.exp (test_ptype_of_classes): Remove "ptype" from calls to cp_test_ptype_class. * lib/cp-support.exp (cp_test_ptype_class): Supply "ptype" command here. Change "in_command" argument to "in_exp".
Diffstat (limited to 'gdb/testsuite/gdb.cp/virtfunc.exp')
-rw-r--r--gdb/testsuite/gdb.cp/virtfunc.exp62
1 files changed, 31 insertions, 31 deletions
diff --git a/gdb/testsuite/gdb.cp/virtfunc.exp b/gdb/testsuite/gdb.cp/virtfunc.exp
index 4621a74..efc46b5 100644
--- a/gdb/testsuite/gdb.cp/virtfunc.exp
+++ b/gdb/testsuite/gdb.cp/virtfunc.exp
@@ -34,7 +34,7 @@ proc test_ptype_of_classes {} {
# class VA
cp_test_ptype_class \
- "ptype VA" "" "class" "VA" \
+ "VA" "" "class" "VA" \
{
{ field public "int va;" }
}
@@ -42,7 +42,7 @@ proc test_ptype_of_classes {} {
# class VB
cp_test_ptype_class \
- "ptype VB" "" "class" "VB" \
+ "VB" "" "class" "VB" \
{
{ field public "int vb;" }
{ method public "int fvb();" }
@@ -52,7 +52,7 @@ proc test_ptype_of_classes {} {
# class V
cp_test_ptype_class \
- "ptype V" "" "class" "V" \
+ "V" "" "class" "V" \
{
{ base "public VA" }
{ base "public VB" }
@@ -64,7 +64,7 @@ proc test_ptype_of_classes {} {
# class A
cp_test_ptype_class \
- "ptype A" "" "class" "A" \
+ "A" "" "class" "A" \
{
{ base "public virtual V" }
{ vbase "V" }
@@ -75,7 +75,7 @@ proc test_ptype_of_classes {} {
# class B
cp_test_ptype_class \
- "ptype B" "" "class" "B" \
+ "B" "" "class" "B" \
{
{ base "public A" }
{ field private "int b;" }
@@ -85,7 +85,7 @@ proc test_ptype_of_classes {} {
# class C
cp_test_ptype_class \
- "ptype C" "" "class" "C" \
+ "C" "" "class" "C" \
{
{ base "public virtual V" }
{ vbase "V" }
@@ -95,7 +95,7 @@ proc test_ptype_of_classes {} {
# class AD
cp_test_ptype_class \
- "ptype AD" "" "class" "AD" \
+ "AD" "" "class" "AD" \
{
{ method public "virtual int vg();" }
}
@@ -103,7 +103,7 @@ proc test_ptype_of_classes {} {
# class D
cp_test_ptype_class \
- "ptype D" "" "class" "D" \
+ "D" "" "class" "D" \
{
{ base "public AD" }
{ base "public virtual V" }
@@ -118,7 +118,7 @@ proc test_ptype_of_classes {} {
# class E
cp_test_ptype_class \
- "ptype E" "" "class" "E" \
+ "E" "" "class" "E" \
{
{ base "public B" }
{ base "public virtual V" }
@@ -133,41 +133,41 @@ proc test_ptype_of_classes {} {
# An instance of D
- cp_test_ptype_class "ptype dd" "" "class" "D" ibid
+ cp_test_ptype_class "dd" "" "class" "D" ibid
# An instance of D *
- cp_test_ptype_class "ptype ppd" "" "class" "D" ibid "*"
+ cp_test_ptype_class "ppd" "" "class" "D" ibid "*"
# An instance of AD *
# TODO: this should be named pADd, not pAd.
- cp_test_ptype_class "ptype pAd" "" "class" "AD" ibid "*"
+ cp_test_ptype_class "pAd" "" "class" "AD" ibid "*"
# Instances of these classes.
- cp_test_ptype_class "ptype a" "" "class" "A" ibid
- cp_test_ptype_class "ptype b" "" "class" "B" ibid
- cp_test_ptype_class "ptype c" "" "class" "C" ibid
- cp_test_ptype_class "ptype d" "" "class" "D" ibid
- cp_test_ptype_class "ptype e" "" "class" "E" ibid
- cp_test_ptype_class "ptype v" "" "class" "V" ibid
- cp_test_ptype_class "ptype vb" "" "class" "VB" ibid
+ cp_test_ptype_class "a" "" "class" "A" ibid
+ cp_test_ptype_class "b" "" "class" "B" ibid
+ cp_test_ptype_class "c" "" "class" "C" ibid
+ cp_test_ptype_class "d" "" "class" "D" ibid
+ cp_test_ptype_class "e" "" "class" "E" ibid
+ cp_test_ptype_class "v" "" "class" "V" ibid
+ cp_test_ptype_class "vb" "" "class" "VB" ibid
# Instances of pointers to these classes.
- cp_test_ptype_class "ptype pAa" "" "class" "A" ibid "*"
- cp_test_ptype_class "ptype pAe" "" "class" "A" ibid "*"
- cp_test_ptype_class "ptype pBe" "" "class" "B" ibid "*"
- cp_test_ptype_class "ptype pDd" "" "class" "D" ibid "*"
- cp_test_ptype_class "ptype pDe" "" "class" "D" ibid "*"
- cp_test_ptype_class "ptype pVa" "" "class" "V" ibid "*"
- cp_test_ptype_class "ptype pVv" "" "class" "V" ibid "*"
- cp_test_ptype_class "ptype pVe" "" "class" "V" ibid "*"
- cp_test_ptype_class "ptype pVd" "" "class" "V" ibid "*"
- cp_test_ptype_class "ptype pADe" "" "class" "AD" ibid "*"
- cp_test_ptype_class "ptype pEe" "" "class" "E" ibid "*"
- cp_test_ptype_class "ptype pVB" "" "class" "VB" ibid "*"
+ cp_test_ptype_class "pAa" "" "class" "A" ibid "*"
+ cp_test_ptype_class "pAe" "" "class" "A" ibid "*"
+ cp_test_ptype_class "pBe" "" "class" "B" ibid "*"
+ cp_test_ptype_class "pDd" "" "class" "D" ibid "*"
+ cp_test_ptype_class "pDe" "" "class" "D" ibid "*"
+ cp_test_ptype_class "pVa" "" "class" "V" ibid "*"
+ cp_test_ptype_class "pVv" "" "class" "V" ibid "*"
+ cp_test_ptype_class "pVe" "" "class" "V" ibid "*"
+ cp_test_ptype_class "pVd" "" "class" "V" ibid "*"
+ cp_test_ptype_class "pADe" "" "class" "AD" ibid "*"
+ cp_test_ptype_class "pEe" "" "class" "E" ibid "*"
+ cp_test_ptype_class "pVB" "" "class" "VB" ibid "*"
}