OLD | NEW |
1 # Copyright 1999-2002, 2004-2005, 2007-2012 Free Software Foundation, | 1 # Copyright 1999-2002, 2004-2005, 2007-2012 Free Software Foundation, |
2 # Inc. | 2 # Inc. |
3 | 3 |
4 # This program is free software; you can redistribute it and/or modify | 4 # This program is free software; you can redistribute it and/or modify |
5 # it under the terms of the GNU General Public License as published by | 5 # it under the terms of the GNU General Public License as published by |
6 # the Free Software Foundation; either version 3 of the License, or | 6 # the Free Software Foundation; either version 3 of the License, or |
7 # (at your option) any later version. | 7 # (at your option) any later version. |
8 # | 8 # |
9 # This program is distributed in the hope that it will be useful, | 9 # This program is distributed in the hope that it will be useful, |
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 | 22 |
23 load_lib mi-support.exp | 23 load_lib mi-support.exp |
24 set MIFLAGS "-i=mi" | 24 set MIFLAGS "-i=mi" |
25 | 25 |
26 gdb_exit | 26 gdb_exit |
27 if [mi_gdb_start] { | 27 if [mi_gdb_start] { |
28 continue | 28 continue |
29 } | 29 } |
30 | 30 |
31 set testfile "mi-var-child" | 31 standard_testfile |
32 set srcfile ${testfile}.c | 32 |
33 set binfile ${objdir}/${subdir}/${testfile} | 33 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { |
34 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug additional_flags=-DFAKEARGV}] != "" } { | |
35 untested mi-var-child.exp | 34 untested mi-var-child.exp |
36 return -1 | 35 return -1 |
37 } | 36 } |
38 | 37 |
39 mi_delete_breakpoints | 38 mi_delete_breakpoints |
40 mi_gdb_reinitialize_dir $srcdir/$subdir | 39 mi_gdb_reinitialize_dir $srcdir/$subdir |
41 mi_gdb_load ${binfile} | 40 mi_gdb_load ${binfile} |
42 | 41 |
43 mi_runto do_children_tests | 42 mi_runto do_children_tests |
44 | 43 |
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 mi_list_varobj_children {struct_declarations --simple-values} \ | 800 mi_list_varobj_children {struct_declarations --simple-values} \ |
802 [list \ | 801 [list \ |
803 {struct_declarations.integer integer 0 int 123} \ | 802 {struct_declarations.integer integer 0 int 123} \ |
804 {struct_declarations.character character 0 char {0 '\\\\000'}} \ | 803 {struct_declarations.character character 0 char {0 '\\\\000'}} \ |
805 [list struct_declarations.char_ptr char_ptr 1 "char \\*" "$hex \\\\\"he
llo\\\\\""] \ | 804 [list struct_declarations.char_ptr char_ptr 1 "char \\*" "$hex \\\\\"he
llo\\\\\""] \ |
806 {struct_declarations.long_int long_int 0 "long int" 0} \ | 805 {struct_declarations.long_int long_int 0 "long int" 0} \ |
807 [list struct_declarations.int_ptr_ptr int_ptr_ptr 1 "int \\*\\*" "$hex"
] \ | 806 [list struct_declarations.int_ptr_ptr int_ptr_ptr 1 "int \\*\\*" "$hex"
] \ |
808 {struct_declarations.long_array long_array 12 "long int \\[12\\]"} \ | 807 {struct_declarations.long_array long_array 12 "long int \\[12\\]"} \ |
809 [list struct_declarations.func_ptr func_ptr 0 "void \\(\\*\\)\\((void)?
\\)" "(@$hex: |)$hex <nothing>"] \ | 808 [list struct_declarations.func_ptr func_ptr 0 "void \\(\\*\\)\\((void)?
\\)" "(@$hex: |)$hex <nothing>"] \ |
810 {struct_declarations.func_ptr_struct func_ptr_struct 0 \ | 809 {struct_declarations.func_ptr_struct func_ptr_struct 0 \ |
811 "struct _struct_decl \\(\\*\\)(\\(int, char \\*, long int\\))?" 0}
\ | 810 "struct _struct_decl \\(\\*\\)(\\(int, char \\*, long int\\))?" 0x
0} \ |
812 {struct_declarations.func_ptr_ptr func_ptr_ptr 0 \ | 811 {struct_declarations.func_ptr_ptr func_ptr_ptr 0 \ |
813 "struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long int)?\\)"
0} \ | 812 "struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long int)?\\)"
0x0} \ |
814 {struct_declarations.u1 u1 4 "union \\{\\.\\.\\.\\}"} \ | 813 {struct_declarations.u1 u1 4 "union \\{\\.\\.\\.\\}"} \ |
815 {struct_declarations.s2 s2 4 "struct \\{\\.\\.\\.\\}"} \ | 814 {struct_declarations.s2 s2 4 "struct \\{\\.\\.\\.\\}"} \ |
816 ] "listing of children, simple types: names, type and values, complex types: nam
es and types" | 815 ] "listing of children, simple types: names, type and values, complex types: nam
es and types" |
817 | 816 |
818 # Delete all variables | 817 # Delete all variables |
819 mi_gdb_test "-var-delete struct_declarations" \ | 818 mi_gdb_test "-var-delete struct_declarations" \ |
820 "\\^done,ndeleted=\"67\"" \ | 819 "\\^done,ndeleted=\"67\"" \ |
821 "delete var struct_declarations" | 820 "delete var struct_declarations" |
822 | 821 |
823 mi_gdb_test "-var-delete weird->int_ptr_ptr" \ | 822 mi_gdb_test "-var-delete weird->int_ptr_ptr" \ |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1184 "\\^done,changelist=\\\[\{name=\"psnp->ptrs.0.next.next.long_ptr\",in_sc
ope=\"true\",type_changed=\"false\",has_more=\"0\"\}\\\]" \ | 1183 "\\^done,changelist=\\\[\{name=\"psnp->ptrs.0.next.next.long_ptr\",in_sc
ope=\"true\",type_changed=\"false\",has_more=\"0\"\}\\\]" \ |
1185 "update all vars psnp->next->next->long_ptr (and 2.long_ptr) changed" | 1184 "update all vars psnp->next->next->long_ptr (and 2.long_ptr) changed" |
1186 | 1185 |
1187 mi_prepare_inline_tests $srcfile | 1186 mi_prepare_inline_tests $srcfile |
1188 | 1187 |
1189 mi_run_inline_test child_deletion | 1188 mi_run_inline_test child_deletion |
1190 | 1189 |
1191 | 1190 |
1192 mi_gdb_exit | 1191 mi_gdb_exit |
1193 return 0 | 1192 return 0 |
OLD | NEW |