OLD | NEW |
1 # Copyright 2002-2003, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 2002-2013 Free Software Foundation, Inc. |
2 | 2 |
3 # This program is free software; you can redistribute it and/or modify | 3 # This program is free software; you can redistribute it and/or modify |
4 # it under the terms of the GNU General Public License as published by | 4 # it under the terms of the GNU General Public License as published by |
5 # the Free Software Foundation; either version 3 of the License, or | 5 # the Free Software Foundation; either version 3 of the License, or |
6 # (at your option) any later version. | 6 # (at your option) any later version. |
7 # | 7 # |
8 # This program is distributed in the hope that it will be useful, | 8 # This program is distributed in the hope that it will be useful, |
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 # GNU General Public License for more details. | 11 # GNU General Public License for more details. |
(...skipping 11 matching lines...) Expand all Loading... |
23 set MIFLAGS "-i=mi" | 23 set MIFLAGS "-i=mi" |
24 | 24 |
25 gdb_exit | 25 gdb_exit |
26 if [mi_gdb_start] { | 26 if [mi_gdb_start] { |
27 continue | 27 continue |
28 } | 28 } |
29 | 29 |
30 standard_testfile .cc | 30 standard_testfile .cc |
31 | 31 |
32 if [get_compiler_info "c++"] { | 32 if [get_compiler_info "c++"] { |
33 return -1; | 33 return -1 |
34 } | 34 } |
35 | 35 |
36 if {[gdb_compile $srcdir/$subdir/$srcfile $binfile executable {debug c++}] != ""
} { | 36 if {[gdb_compile $srcdir/$subdir/$srcfile $binfile executable {debug c++}] != ""
} { |
37 untested gdb792.exp | 37 untested gdb792.exp |
38 return -1 | 38 return -1 |
39 } | 39 } |
40 | 40 |
41 # Test that children of classes are properly reported | 41 # Test that children of classes are properly reported |
42 | 42 |
43 # Run to main | 43 # Run to main |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 mi_create_varobj "var2" "c" "create var for class C which has baseclass A" | 83 mi_create_varobj "var2" "c" "create var for class C which has baseclass A" |
84 | 84 |
85 mi_list_varobj_children "var2" { | 85 mi_list_varobj_children "var2" { |
86 {var2.A A 3 A} | 86 {var2.A A 3 A} |
87 {var2.public public 1} | 87 {var2.public public 1} |
88 {var2.private private 1} | 88 {var2.private private 1} |
89 } "list children of class C" | 89 } "list children of class C" |
90 | 90 |
91 mi_gdb_exit | 91 mi_gdb_exit |
92 return 0 | 92 return 0 |
OLD | NEW |