summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/mi2-var-block.exp
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2007-02-08 20:35:08 +0000
committerNick Roberts <nickrob@snap.net.nz>2007-02-08 20:35:08 +0000
commite4b70feb1cb63999909ebfb5e062a592e87c6601 (patch)
tree6a079714528e4520c8af183024e183819d4c77c7 /gdb/testsuite/gdb.mi/mi2-var-block.exp
parentfa0a9124379d2c13313d1e1a17b83317aa04eacb (diff)
downloadgdb-e4b70feb1cb63999909ebfb5e062a592e87c6601.tar.gz
Update tests to include value field in output of -var-create.
mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi2-var-block.exp')
-rw-r--r--gdb/testsuite/gdb.mi/mi2-var-block.exp16
1 files changed, 4 insertions, 12 deletions
diff --git a/gdb/testsuite/gdb.mi/mi2-var-block.exp b/gdb/testsuite/gdb.mi/mi2-var-block.exp
index 08beb6a3efe..f9499749f97 100644
--- a/gdb/testsuite/gdb.mi/mi2-var-block.exp
+++ b/gdb/testsuite/gdb.mi/mi2-var-block.exp
@@ -45,9 +45,7 @@ mi_runto do_block_tests
# Test: c_variable-3.2
# Desc: create cb and foo
-mi_gdb_test "-var-create cb * cb" \
- "\\^done,name=\"cb\",numchild=\"0\",type=\"int\"" \
- "create local variable cb"
+mi_create_varobj cb cb "create local variable cb"
mi_gdb_test "-var-create foo * foo" \
"&\"mi_cmd_var_create: unable to create variable object\\\\n\".*\\^error,msg=\"mi_cmd_var_create: unable to create variable object\"" \
@@ -67,9 +65,7 @@ mi_gdb_test "-var-delete foo" \
# Test: c_variable-3.3
# Desc: create foo
-mi_gdb_test "-var-create foo * foo" \
- "\\^done,name=\"foo\",numchild=\"0\",type=\"int\"" \
- "create local variable foo"
+mi_create_varobj foo foo "create local variable foo"
# step to "foo2 = 123;"
mi_step_to "do_block_tests" "" "var-cmd.c" \
@@ -89,9 +85,7 @@ mi_step_to "do_block_tests" "" "var-cmd.c" \
# Test: c_variable-3.5
# Desc: create inner block foo
-mi_gdb_test "-var-create inner_foo * foo" \
- "\\^done,name=\"inner_foo\",numchild=\"0\",type=\"int\"" \
- "create local variable inner_foo"
+mi_create_varobj inner_foo foo "create local variable inner_foo"
# step to "foo2 = 0;"
mi_step_to "do_block_tests" "" "var-cmd.c" \
@@ -100,9 +94,7 @@ mi_step_to "do_block_tests" "" "var-cmd.c" \
# Test: c_variable-3.6
# Desc: create foo2
-mi_gdb_test "-var-create foo2 * foo2" \
- "\\^done,name=\"foo2\",numchild=\"0\",type=\"int\"" \
- "create local variable foo2"
+mi_create_varobj foo2 foo2 "create local variable foo2"
# Test: c_variable-3.7
# Desc: check that outer foo in scope and inner foo out of scope