summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/step-test.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1999-06-28 16:06:02 +0000
committerJason Molenda <jmolenda@apple.com>1999-06-28 16:06:02 +0000
commit085dd6e638eca9d348100c8f0e8cae04e20d58a1 (patch)
tree1e740197cdfedb994222a003ea531ec2febaf173 /gdb/testsuite/gdb.base/step-test.c
parent303f629d619e7bf37b97c2af6f72aba488669044 (diff)
import gdb-1999-06-28 snapshot
Diffstat (limited to 'gdb/testsuite/gdb.base/step-test.c')
-rw-r--r--gdb/testsuite/gdb.base/step-test.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/step-test.c b/gdb/testsuite/gdb.base/step-test.c
index 7130725400..a1e1dc408c 100644
--- a/gdb/testsuite/gdb.base/step-test.c
+++ b/gdb/testsuite/gdb.base/step-test.c
@@ -1,9 +1,12 @@
+#include <stdlib.h>
+#include <string.h>
+
/* Test various kinds of stepping.
*/
-int glob = 0;
+int myglob = 0;
int callee() {
- glob++;
+ myglob++; return 0;
}
/* A structure which, we hope, will need to be passed using memcpy. */
@@ -14,7 +17,7 @@ struct rhomboidal {
void
large_struct_by_value (struct rhomboidal r)
{
- glob += r.rather_large[42]; /* step-test.exp: arrive here 1 */
+ myglob += r.rather_large[42]; /* step-test.exp: arrive here 1 */
}
int main () {