summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/step-test.c
diff options
context:
space:
mode:
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 7130725400e..a1e1dc408cf 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 () {