aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/gdb701.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.mi/gdb701.exp')
-rw-r--r--gdb/testsuite/gdb.mi/gdb701.exp4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.mi/gdb701.exp b/gdb/testsuite/gdb.mi/gdb701.exp
index 3e000bd..18a187b 100644
--- a/gdb/testsuite/gdb.mi/gdb701.exp
+++ b/gdb/testsuite/gdb.mi/gdb701.exp
@@ -49,9 +49,7 @@ mi_run_to_main
# Step over "foo = 0"
mi_next "step over \"foo = 0\""
-mi_gdb_test "-var-create fooPtr * foo" \
- "(&\".*\"\r\n)*\\^done,name=\"fooPtr\",numchild=\"3\",value=\".*\",type=\"Foo \\*\"" \
- "create fooPtr"
+mi_create_varobj "fooPtr" "foo" "create fooPtr"
mi_gdb_test "-var-list-children fooPtr" \
"(&\".*\"\r\n)*\\^done,numchild=\"3\",.*" \