diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2007-02-27 21:45:34 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2007-02-27 21:45:34 +0000 |
commit | 3fddb3adb460904d722c1bb9c271ff41518e369e (patch) | |
tree | a11d4f949073d2b12a8da8a75098e20066d39fb3 /gdb/testsuite/gdb.mi/mi-var-child.exp | |
parent | 93d42b302eb91d758191675dcaf3bd90323b5224 (diff) | |
download | gdb-3fddb3adb460904d722c1bb9c271ff41518e369e.zip gdb-3fddb3adb460904d722c1bb9c271ff41518e369e.tar.gz gdb-3fddb3adb460904d722c1bb9c271ff41518e369e.tar.bz2 |
* gdb.mi/mi-var-block.exp, gdb.mi/mi2-var-block.exp
* gdb.mi/mi-var-child.exp, gdb.mi/mi2-var-child.exp
* gdb.mi/mi-var-child-f.exp, gdb.mi/mi-var-cmd.exp
* gdb.mi/mi2-var-cmd.exp, gdb.mi/mi-var-display.exp
* gdb.mi/mi2-var-display.exp, gdb.mi/gdb701.exp
Revert tests to use mi_gdb_test and include value field in output
of -var-create.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-var-child.exp')
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-var-child.exp | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-var-child.exp b/gdb/testsuite/gdb.mi/mi-var-child.exp index 146de37..324179f 100644 --- a/gdb/testsuite/gdb.mi/mi-var-child.exp +++ b/gdb/testsuite/gdb.mi/mi-var-child.exp @@ -56,8 +56,9 @@ mi_execute_to "exec-next" "end-stepping-range" do_children_tests {} ".*${srcfile # Test: c_variable-4.2 # Desc: create variable "struct_declarations" -mi_create_varobj struct_declarations struct_declarations \ - "create local variable struct_declarations" +mi_gdb_test "-var-create struct_declarations * struct_declarations" \ + "\\^done,name=\"struct_declarations\",numchild=\"11\",value=\"{...}\",type=\"struct _struct_decl\"" \ + "create local variable struct_declarations" # Test: c_variable-4.3 # Desc: children of struct_declarations @@ -563,7 +564,9 @@ mi_step_to do_children_tests {} ".*${srcfile}" \ # Test: c_variable-4.81 # Desc: create local variable "weird" -mi_create_varobj weird weird "create local variable weird" +mi_gdb_test "-var-create weird * weird" \ + "\\^done,name=\"weird\",numchild=\"11\",value=\"$hex\",type=\"weird_struct \\*\"" \ + "create local variable weird" # Test: c_variable-4.82 # Desc: children of weird @@ -625,8 +628,9 @@ mi_gdb_test "-var-info-num-children weird.int_ptr_ptr.*int_ptr_ptr" \ # Test: c_variable-4.90 # Desc: create weird->int_ptr_ptr -mi_create_varobj weird->int_ptr_ptr weird->int_ptr_ptr \ - "create local variable weird->int_ptr_ptr" +mi_gdb_test "-var-create weird->int_ptr_ptr * weird->int_ptr_ptr" \ + "\\^done,name=\"weird->int_ptr_ptr\",numchild=\"1\",value=\"$hex\",type=\"int \\*\\*\"" \ + "create local variable weird->int_ptr_ptr" # Test: c_variable-4.91 # Desc: children of weird->int_ptr_ptr @@ -890,8 +894,9 @@ mi_execute_to "exec-step 43" "end-stepping-range" do_children_tests {} ".*${srcf # Test: c_variable-5.10 # Desc: create psnp->char_ptr -mi_create_varobj psnp->char_ptr psnp->char_ptr \ - "create local variable psnp->char_ptr" +mi_gdb_test "-var-create psnp->char_ptr * psnp->char_ptr" \ + "\\^done,name=\"psnp->char_ptr\",numchild=\"1\",value=\".*\",type=\"char \\*\\*\\*\\*\"" \ + "create local variable psnp->char_ptr" # Test: c_variable-5.11 # Desc: children of psnp->char_ptr @@ -962,8 +967,9 @@ mi_gdb_test "-var-info-num-children psnp->char_ptr.*psnp->char_ptr.**psnp->char_ # Test: c_variable-5.19 # Desc: create psnp->long_ptr -mi_create_varobj psnp->long_ptr psnp->long_ptr \ - "create local variable psnp->long_ptr" +mi_gdb_test "-var-create psnp->long_ptr * psnp->long_ptr" \ + "\\^done,name=\"psnp->long_ptr\",numchild=\"1\",value=\"$hex\",type=\"long int \\*\\*\\*\\*\"" \ + "create local variable psnp->long_ptr" # Test: c_variable-5.20 # Desc: children of psnp->long_ptr @@ -1028,7 +1034,9 @@ mi_gdb_test "-var-info-num-children psnp->long_ptr.*psnp->long_ptr.**psnp->long_ # Test: c_variable-5.30 # Desc: create psnp->ptrs -mi_create_varobj psnp->ptrs psnp->ptrs "create local variable psnp->ptrs" +mi_gdb_test "-var-create psnp->ptrs * psnp->ptrs" \ + "\\^done,name=\"psnp->ptrs\",numchild=\"3\",value=\"\\\[3\\\]\",type=\"struct _struct_n_pointer \\*\\\[3\\\]\"" \ + "create local variable psnp->ptrs" # Test: c_variable-5.31 # Desc: children of psnp->ptrs |