diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-03-26 13:24:22 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-03-26 13:24:22 +0000 |
commit | 9e8e3afe379605b88ca2ab1013a2fa441534232c (patch) | |
tree | 639283566b9cd9532ad7d99f1ee2207d74f539dc /gdb/testsuite/gdb.mi/mi-var-invalidate.exp | |
parent | c35e54f42419c844fb50cc537f4606ada454ecd6 (diff) | |
download | gdb-9e8e3afe379605b88ca2ab1013a2fa441534232c.zip gdb-9e8e3afe379605b88ca2ab1013a2fa441534232c.tar.gz gdb-9e8e3afe379605b88ca2ab1013a2fa441534232c.tar.bz2 |
* lib/mi-support.exp (mi_create_varobj_checked): New.
(mi_list_varobj_children): Allow to check for a
value.
(mi_list_array_varobj_children): New.
* gdb.mi/mi-var-child.exp: Use mi_create_varobj
and mi_list_varobj_children, as opposed to hardcoding
expected strings.
* gdb.mi/gdb701.exp: Likewise.
* gdb.mi/gdb792.exp: Likewise.
* gdb.mi/mi-var-block.exp: Likewise.
* gdb.mi/mi-var-cmd.exp: Likewise.
* gdb.mi/mi-var-invalidate.exp: Likewise.
* gdb.mi/mi2-var-block.exp: Likewise.
* gdb.mi/mi2-var-child.exp: Likewise.
* gdb.mi/mi2-var-cmd.exp: Likewise.
* gdb.mi/mi2-var-display.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-var-invalidate.exp')
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-var-invalidate.exp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-var-invalidate.exp b/gdb/testsuite/gdb.mi/mi-var-invalidate.exp index 77a7d4e..ab3e8c9 100644 --- a/gdb/testsuite/gdb.mi/mi-var-invalidate.exp +++ b/gdb/testsuite/gdb.mi/mi-var-invalidate.exp @@ -55,16 +55,12 @@ mi_gdb_reinitialize_dir $srcdir/$subdir mi_gdb_load ${binfile} # Desc: Create global variable. -mi_gdb_test "-var-create global_simple * global_simple" \ - "\\^done,name=\"global_simple\",numchild=\"6\",value=\".*\",type=\"simpleton\"" \ - "create global variable" +mi_create_varobj global_simple global_simple "create global variable" mi_runto do_locals_tests # Desc: create local variables -mi_gdb_test "-var-create linteger * linteger" \ - "\\^done,name=\"linteger\",numchild=\"0\",value=\".*\",type=\"int\"" \ - "create local variable linteger" +mi_create_varobj linteger linteger "create local variable linteger" # # Reload the same binary. |