diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-02-23 00:25:43 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-02-23 00:25:43 +0000 |
commit | fb40c20903110ed8af9701ce7c2635abd3770d52 (patch) | |
tree | 9f99a85a7d64fa61cfa9a167e006e2f747716d42 /gdb/testsuite/gdb.mi/until.c | |
parent | e6c6b6fe2d24c8be4909c7e3c0dd1a937819ffe9 (diff) | |
download | gdb-fb40c20903110ed8af9701ce7c2635abd3770d52.zip gdb-fb40c20903110ed8af9701ce7c2635abd3770d52.tar.gz gdb-fb40c20903110ed8af9701ce7c2635abd3770d52.tar.bz2 |
Add mi/ and testsuite/gdb.mi/ subdirectories.
Add --enable-gdbmi option to configury.
Add mi rules to Makefile.in
Add mi conditional output to event-top.c infrun.c main.c top.c.
Add -i=mi option.
Diffstat (limited to 'gdb/testsuite/gdb.mi/until.c')
-rw-r--r-- | gdb/testsuite/gdb.mi/until.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.mi/until.c b/gdb/testsuite/gdb.mi/until.c new file mode 100644 index 0000000..df4a68d --- /dev/null +++ b/gdb/testsuite/gdb.mi/until.c @@ -0,0 +1,26 @@ +foo (void) +{ + int i, x, y, z; + + x = 0; + y = 1; + i = 0; + + while (i < 2) + i++; + + x = i; + y = 2 * x; + z = x + y; + y = x + z; + x = 9; + y = 10; +} + +main () +{ + int a = 1; + foo (); + a += 2; + return 0; +} |