import gdb-1999-06-28 snapshot
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / step-test.c
index 7130725400eea98cc6b8b148b4a899b7eceba6da..a1e1dc408cf382b762076e14a187c9ec38c9aa4c 100644 (file)
@@ -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 () {
This page took 0.026781 seconds and 4 git commands to generate.