aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/gdb792.exp
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-02-02 06:24:04 +0000
committerAndrew Cagney <cagney@redhat.com>2003-02-02 06:24:04 +0000
commite7494ffb7117d0f6291ab03434a7d326a60c4154 (patch)
treefd418f2e4b5e73913e1a8c225066390889df86d7 /gdb/testsuite/gdb.mi/gdb792.exp
parent075559bc196f31237cf09c3eda0757f493f4dc25 (diff)
downloadgdb-e7494ffb7117d0f6291ab03434a7d326a60c4154.zip
gdb-e7494ffb7117d0f6291ab03434a7d326a60c4154.tar.gz
gdb-e7494ffb7117d0f6291ab03434a7d326a60c4154.tar.bz2
2003-02-02 Andrew Cagney <ac131313@redhat.com>
From 2002-11-10 Jason Molenda (jason-cl@molenda.com): * mi-cmd-var.c (mi_cmd_var_list_children): CHILDREN field is now a list; still a tuple when in mi1. * gdbmi.texinfo: Update var-list-children example. 2003-02-02 Andrew Cagney <ac131313@redhat.com> 2002-11-10 Jason Molenda (jason-cl@molenda.com): * gdb.mi/mi-var-child.exp: -var-list-children's CHILDREN field is now a list, not a tuple. * gdb.mi/mi-var-display.exp: Ditto. * gdb.mi/gdb792.exp: Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.mi/gdb792.exp')
-rw-r--r--gdb/testsuite/gdb.mi/gdb792.exp16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.mi/gdb792.exp b/gdb/testsuite/gdb.mi/gdb792.exp
index ce5ac31..3fc6df0 100644
--- a/gdb/testsuite/gdb.mi/gdb792.exp
+++ b/gdb/testsuite/gdb.mi/gdb792.exp
@@ -51,31 +51,31 @@ mi_gdb_test "-var-create - * a" \
"create var for class A"
mi_gdb_test "-var-list-children var1" \
- "(&\".*\"\r\n)*\\^done,numchild=\"3\",children=\{child=\{name=\"var1\.public\",exp=\"public\",numchild=\"2\"\},child=\{name=\"var1\.private\",exp=\"private\",numchild=\"2\"\},child=\{name=\"var1\.protected\",exp=\"protected\",numchild=\"2\"\}\}" \
+ "(&\".*\"\r\n)*\\^done,numchild=\"3\",children=\\\[child=\{name=\"var1\.public\",exp=\"public\",numchild=\"2\"\},child=\{name=\"var1\.private\",exp=\"private\",numchild=\"2\"\},child=\{name=\"var1\.protected\",exp=\"protected\",numchild=\"2\"\}\\\]" \
"list children of class A"
mi_gdb_test "-var-list-children var1.public" \
- "(&\".*\"\r\n)*\\^done,numchild=\"2\",children=\{child=\{name=\"var1\.public\.x\",exp=\"x\",numchild=\"0\",type=\"int\"\},child=\{name=\"var1\.public\.buffer\",exp=\"buffer\",numchild=\"10\",type=\"char \\\[10\\\]\"\}\}" \
+ "(&\".*\"\r\n)*\\^done,numchild=\"2\",children=\\\[child=\{name=\"var1\.public\.x\",exp=\"x\",numchild=\"0\",type=\"int\"\},child=\{name=\"var1\.public\.buffer\",exp=\"buffer\",numchild=\"10\",type=\"char \\\[10\\\]\"\}\\\]" \
"list children of A.public"
mi_gdb_test "-var-list-children var1.private" \
- "(&\".*\"\r\n)*\\^done,numchild=\"2\",children=\{child=\{name=\"var1\.private\.u\",exp=\"u\",numchild=\"0\",type=\"int\"\},child=\{name=\"var1\.private\.z\",exp=\"z\",numchild=\"0\",type=\"float\"\}\}" \
+ "(&\".*\"\r\n)*\\^done,numchild=\"2\",children=\\\[child=\{name=\"var1\.private\.u\",exp=\"u\",numchild=\"0\",type=\"int\"\},child=\{name=\"var1\.private\.z\",exp=\"z\",numchild=\"0\",type=\"float\"\}\\\]" \
"list children of A.private"
mi_gdb_test "-var-list-children var1.protected" \
- "(&\".*\"\r\n)*\\^done,numchild=\"2\",children=\{child=\{name=\"var1\.protected\.y\",exp=\"y\",numchild=\"0\",type=\"int\"\},child=\{name=\"var1\.protected\.b\",exp=\"b\",numchild=\"2\",type=\"B\"\}\}" \
+ "(&\".*\"\r\n)*\\^done,numchild=\"2\",children=\\\[child=\{name=\"var1\.protected\.y\",exp=\"y\",numchild=\"0\",type=\"int\"\},child=\{name=\"var1\.protected\.b\",exp=\"b\",numchild=\"2\",type=\"B\"\}\\\]" \
"list children of A.protected"
mi_gdb_test "-var-list-children var1.protected.b" \
- "(&\".*\"\r\n)*\\^done,numchild=\"2\",children=\{child=\{name=\"var1\.protected\.b\.public\",exp=\"public\",numchild=\"2\"\},child=\{name=\"var1\.protected\.b\.private\",exp=\"private\",numchild=\"1\"\}\}" \
+ "(&\".*\"\r\n)*\\^done,numchild=\"2\",children=\\\[child=\{name=\"var1\.protected\.b\.public\",exp=\"public\",numchild=\"2\"\},child=\{name=\"var1\.protected\.b\.private\",exp=\"private\",numchild=\"1\"\}\\\]" \
"list children of A.protected.b"
mi_gdb_test "-var-list-children var1.protected.b.public" \
- "(&\".*\"\r\n)*\\^done,numchild=\"2\",children=\{child=\{name=\"var1\.protected\.b\.public\.bx\",exp=\"bx\",numchild=\"0\",type=\"int\"\},child=\{name=\"var1\.protected\.b\.public\.by\",exp=\"by\",numchild=\"0\",type=\"int\"\}\}" \
+ "(&\".*\"\r\n)*\\^done,numchild=\"2\",children=\\\[child=\{name=\"var1\.protected\.b\.public\.bx\",exp=\"bx\",numchild=\"0\",type=\"int\"\},child=\{name=\"var1\.protected\.b\.public\.by\",exp=\"by\",numchild=\"0\",type=\"int\"\}\\\]" \
"list children of A.protected.b.public"
mi_gdb_test "-var-list-children var1.protected.b.private" \
- "(&\".*\"\r\n)*\\^done,numchild=\"1\",children=\{child=\{name=\"var1\.protected\.b\.private\.k\",exp=\"k\",numchild=\"0\",type=\"int\"\}\}" \
+ "(&\".*\"\r\n)*\\^done,numchild=\"1\",children=\\\[child=\{name=\"var1\.protected\.b\.private\.k\",exp=\"k\",numchild=\"0\",type=\"int\"\}\\\]" \
"list children of A.protected.b.private"
mi_gdb_test "-var-create - * c" \
@@ -83,7 +83,7 @@ mi_gdb_test "-var-create - * c" \
"create var for class C which has baseclass A"
mi_gdb_test "-var-list-children var2" \
- "(&\".*\"\r\n)*\\^done,numchild=\"3\",children=\{child=\{name=\"var2\.A\",exp=\"A\",numchild=\"3\",type=\"A\"\},child=\{name=\"var2\.public\",exp=\"public\",numchild=\"1\"\},child=\{name=\"var2\.private\",exp=\"private\",numchild=\"1\"\}\}" \
+ "(&\".*\"\r\n)*\\^done,numchild=\"3\",children=\\\[child=\{name=\"var2\.A\",exp=\"A\",numchild=\"3\",type=\"A\"\},child=\{name=\"var2\.public\",exp=\"public\",numchild=\"1\"\},child=\{name=\"var2\.private\",exp=\"private\",numchild=\"1\"\}\\\]" \
"list children of class C"
mi_gdb_exit