the 'struct_declarations' variable to zeros.
* gdb.mi/mi2-var-child.exp: Step over said
initialization.
+2007-09-27 Vladimir Prus <vladimir@codesourcery.com>
+
+ * gdb.mi/var-cmd.c (do_children_tests): Initialize
+ the 'struct_declarations' variable to zeros.
+ * gdb.mi/mi2-var-child.exp: Step over said
+ initialization.
+
2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
* gdb.cp/mb-ctor.cc: New.
# #
##### #####
+# Step to "weird = &struct_declarations;"
+set line_dct_weird [gdb_get_line_number "weird = &struct_declarations;"]
+mi_next_to do_children_tests {} {.*var-cmd.c} \
+ $line_dct_weird "step to line \$line_dct_weird"
# Test: c_variable-4.2
# Desc: create variable "struct_declarations"
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <stdlib.h>
+#include <string.h>
struct _simple_struct {
int integer;
int bar;
struct _struct_decl struct_declarations;
+ memset (&struct_declarations, 0, sizeof (struct_declarations));
weird = &struct_declarations;
struct_declarations.integer = 123;