diff options
author | Daniel Jacobowitz <drow@false.org> | 2005-07-31 22:10:53 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2005-07-31 22:10:53 +0000 |
commit | 6e650a6732c23c39b09c8966cbfb930c87026f40 (patch) | |
tree | 505c17fd679b55c396450e42b65a90ae8beb0681 /gdb/testsuite | |
parent | 8be260b6f95c37c4633663a01eb02ffc0dcd184f (diff) | |
download | gdb-6e650a6732c23c39b09c8966cbfb930c87026f40.zip gdb-6e650a6732c23c39b09c8966cbfb930c87026f40.tar.gz gdb-6e650a6732c23c39b09c8966cbfb930c87026f40.tar.bz2 |
* gdb.mi/mi-var-child.c (do_children_tests): Initialize
struct_declarations.
* gdb.mi/mi-var-child.exp: Step over the initialization of
struct_declarations.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-var-child.c | 1 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-var-child.exp | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 6ca381b..ef3980c 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,12 @@ 2005-07-31 Daniel Jacobowitz <dan@codesourcery.com> + * gdb.mi/mi-var-child.c (do_children_tests): Initialize + struct_declarations. + * gdb.mi/mi-var-child.exp: Step over the initialization of + struct_declarations. + +2005-07-31 Daniel Jacobowitz <dan@codesourcery.com> + * gdb.mi/basics.c, gdb.mi/var-cmd.c: Revert last change. * gdb.mi/mi-stack.c: New file, based on gdb.mi/basics.c. * gdb.mi/mi-var-child.c: New file, based on gdb.mi/var-cmd.c. diff --git a/gdb/testsuite/gdb.mi/mi-var-child.c b/gdb/testsuite/gdb.mi/mi-var-child.c index 06b3e35..7686758 100644 --- a/gdb/testsuite/gdb.mi/mi-var-child.c +++ b/gdb/testsuite/gdb.mi/mi-var-child.c @@ -208,6 +208,7 @@ do_children_tests (void) int bar; struct _struct_decl struct_declarations; + memset (&struct_declarations, 0, sizeof (struct_declarations)); weird = &struct_declarations; struct_declarations.integer = 123; diff --git a/gdb/testsuite/gdb.mi/mi-var-child.exp b/gdb/testsuite/gdb.mi/mi-var-child.exp index 63f49ed..3337d89 100644 --- a/gdb/testsuite/gdb.mi/mi-var-child.exp +++ b/gdb/testsuite/gdb.mi/mi-var-child.exp @@ -47,6 +47,10 @@ mi_runto do_children_tests # # ##### ##### +# Step past the initialization of struct_declarations. +set line_weird [gdb_get_line_number "weird = &struct_declarations;"] +mi_execute_to "exec-next" "end-stepping-range" do_children_tests {} ".*${srcfile}" \ + [expr $line_weird] {} "step \$line_weird" # Test: c_variable-4.2 # Desc: create variable "struct_declarations" |