aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-05-05 18:04:09 +0000
committerDaniel Jacobowitz <drow@false.org>2006-05-05 18:04:09 +0000
commitc7e64c9a767deaad6e7d20cf0e691bd11b5686a4 (patch)
tree3c6813ae14e1792dfef58740e1da3f07a29e9cb1 /gdb/testsuite/gdb.mi
parent401835eb9ca4a19ca83d6fe120e14f3d3354437e (diff)
downloadgdb-c7e64c9a767deaad6e7d20cf0e691bd11b5686a4.zip
gdb-c7e64c9a767deaad6e7d20cf0e691bd11b5686a4.tar.gz
gdb-c7e64c9a767deaad6e7d20cf0e691bd11b5686a4.tar.bz2
* gdb.cp/m-static.h (class gnu_obj_4): Add dummy member.
* gdb.cp/m-static.cc (main): Write to test4.dummy, so that test4 is allocated by the compiler. * gdb.mi/var-cmd.c: (do_special_tests): Write to u, anonu, s, anons, e, anone to force their allocation by the compiler.
Diffstat (limited to 'gdb/testsuite/gdb.mi')
-rw-r--r--gdb/testsuite/gdb.mi/var-cmd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.mi/var-cmd.c b/gdb/testsuite/gdb.mi/var-cmd.c
index 2a297d2..4ccd570 100644
--- a/gdb/testsuite/gdb.mi/var-cmd.c
+++ b/gdb/testsuite/gdb.mi/var-cmd.c
@@ -301,6 +301,12 @@ do_special_tests (void)
int a;
a = 1;
+ u.integer = a;
+ anonu.a = a;
+ s.integer = a;
+ anons.a = a;
+ e = bar;
+ anone = A;
incr_a(2);
}