diff options
author | Tom Tromey <tromey@redhat.com> | 2012-11-12 17:08:09 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-11-12 17:08:09 +0000 |
commit | b3720c3afd7fc68cf30b2ce40a8f0ccddc8f5069 (patch) | |
tree | 05f57e6a7ea6dfbc54a07c3feaf8da1f71166150 /gdb/testsuite/gdb.cp/inherit.exp | |
parent | 8f5846c8afb497bf9e6576de75b02a0b1fd03643 (diff) | |
download | gdb-b3720c3afd7fc68cf30b2ce40a8f0ccddc8f5069.zip gdb-b3720c3afd7fc68cf30b2ce40a8f0ccddc8f5069.tar.gz 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/inherit.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/inherit.exp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/gdb/testsuite/gdb.cp/inherit.exp b/gdb/testsuite/gdb.cp/inherit.exp index fc5f2e2..938a2aa 100644 --- a/gdb/testsuite/gdb.cp/inherit.exp +++ b/gdb/testsuite/gdb.cp/inherit.exp @@ -41,37 +41,37 @@ proc test_ptype_si { } { # A simple class. cp_test_ptype_class \ - "ptype A" "ptype A (FIXME)" "class" "A" \ + "A" "ptype A (FIXME)" "class" "A" \ { { field public "int a;" } { field public "int x;" } } - cp_test_ptype_class "ptype class A" "ptype class A (FIXME)" "class" "A" ibid - cp_test_ptype_class "ptype g_A" "ptype g_A (FIXME)" "class" "A" ibid + cp_test_ptype_class "class A" "ptype class A (FIXME)" "class" "A" ibid + cp_test_ptype_class "g_A" "ptype g_A (FIXME)" "class" "A" ibid # A derived class. cp_test_ptype_class \ - "ptype B" "" "class" "B" \ + "B" "" "class" "B" \ { { base "public A" } { field public "int b;" } { field public "int x;" } } - cp_test_ptype_class "ptype class B" "" "class" "B" ibid - cp_test_ptype_class "ptype g_B" "" "class" "B" ibid + cp_test_ptype_class "class B" "" "class" "B" ibid + cp_test_ptype_class "g_B" "" "class" "B" ibid # Another derived class. cp_test_ptype_class \ - "ptype C" "" "class" "C" \ + "C" "" "class" "C" \ { { base "public A" } { field public "int c;" } { field public "int x;" } } - cp_test_ptype_class "ptype class C" "" "class" "C" ibid - cp_test_ptype_class "ptype g_C" "" "class" "C" ibid + cp_test_ptype_class "class C" "" "class" "C" ibid + cp_test_ptype_class "g_C" "" "class" "C" ibid # A structure with no tag. # TODO: move this mess into a separate file, and re-specify @@ -146,27 +146,27 @@ proc test_ptype_mi { } { # A class with two bases. cp_test_ptype_class \ - "ptype D" "" "class" "D" \ + "D" "" "class" "D" \ { { base "public B" } { base "public C" } { field public "int d;" } { field public "int x;" } } - cp_test_ptype_class "ptype class D" "" "class" "D" ibid - cp_test_ptype_class "ptype g_D" "" "class" "D" ibid + cp_test_ptype_class "class D" "" "class" "D" ibid + cp_test_ptype_class "g_D" "" "class" "D" ibid # A class derived from the previous class. cp_test_ptype_class \ - "ptype E" "" "class" "E" \ + "E" "" "class" "E" \ { { base "public D" } { field public "int e;" } { field public "int x;" } } - cp_test_ptype_class "ptype class E" "" "class" "E" ibid - cp_test_ptype_class "ptype g_E" "" "class" "E" ibid + cp_test_ptype_class "class E" "" "class" "E" ibid + cp_test_ptype_class "g_E" "" "class" "E" ibid } # Single virtual inheritance, print type definitions. @@ -176,39 +176,39 @@ proc test_ptype_vi { } { # class vA cp_test_ptype_class \ - "ptype vA" "" "class" "vA" \ + "vA" "" "class" "vA" \ { { field public "int va;" } { field public "int vx;" } } - cp_test_ptype_class "ptype class vA" "" "class" "vA" ibid - cp_test_ptype_class "ptype g_vA" "" "class" "vA" ibid + cp_test_ptype_class "class vA" "" "class" "vA" ibid + cp_test_ptype_class "g_vA" "" "class" "vA" ibid # class vB cp_test_ptype_class \ - "ptype vB" "" "class" "vB" \ + "vB" "" "class" "vB" \ { { base "public virtual vA" } { vbase "vA" } { field public "int vb;" } { field public "int vx;" } } - cp_test_ptype_class "ptype class vB" "" "class" "vB" ibid - cp_test_ptype_class "ptype g_vB" "" "class" "vB" ibid + cp_test_ptype_class "class vB" "" "class" "vB" ibid + cp_test_ptype_class "g_vB" "" "class" "vB" ibid # class vC cp_test_ptype_class \ - "ptype vC" "" "class" "vC" \ + "vC" "" "class" "vC" \ { { base "public virtual vA" } { vbase "vA" } { field public "int vc;" } { field public "int vx;" } } - cp_test_ptype_class "ptype class vC" "" "class" "vC" ibid - cp_test_ptype_class "ptype g_vC" "" "class" "vC" ibid + cp_test_ptype_class "class vC" "" "class" "vC" ibid + cp_test_ptype_class "g_vC" "" "class" "vC" ibid } @@ -219,7 +219,7 @@ proc test_ptype_mvi { } { # class vD cp_test_ptype_class \ - "ptype vD" "" "class" "vD" \ + "vD" "" "class" "vD" \ { { base "public virtual vB" } { base "public virtual vC" } @@ -228,21 +228,21 @@ proc test_ptype_mvi { } { { field public "int vd;" } { field public "int vx;" } } - cp_test_ptype_class "ptype class vD" "" "class" "vD" ibid - cp_test_ptype_class "ptype g_vD" "" "class" "vD" ibid + cp_test_ptype_class "class vD" "" "class" "vD" ibid + cp_test_ptype_class "g_vD" "" "class" "vD" ibid # class vE cp_test_ptype_class \ - "ptype vE" "" "class" "vE" \ + "vE" "" "class" "vE" \ { { base "public virtual vD" } { vbase "vD" } { field public "int ve;" } { field public "int vx;" } } - cp_test_ptype_class "ptype class vE" "" "class" "vE" ibid - cp_test_ptype_class "ptype g_vE" "" "class" "vE" ibid + cp_test_ptype_class "class vE" "" "class" "vE" ibid + cp_test_ptype_class "g_vE" "" "class" "vE" ibid } |