aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/break.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/break.c')
-rw-r--r--gdb/testsuite/gdb.base/break.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/break.c b/gdb/testsuite/gdb.base/break.c
index 2c69d8b..86e6cda 100644
--- a/gdb/testsuite/gdb.base/break.c
+++ b/gdb/testsuite/gdb.base/break.c
@@ -87,10 +87,6 @@ char *argv[], **envp;
set_debug_traps(); /* set breakpoint 5 here */
breakpoint();
#endif
- /* We're used by a test that requires malloc, so make sure it is
- in the executable. */
- (void)malloc (1);
-
if (argc == 12345) { /* an unlikely value < 2^16, in case uninited */ /* set breakpoint 6 here */
fprintf (stderr, "usage: factorial <number>\n");
return 1;
@@ -101,6 +97,10 @@ char *argv[], **envp;
marker2 (43); /* set breakpoint 20 here */
marker3 ("stack", "trace"); /* set breakpoint 21 here */
marker4 (177601976L);
+ /* We're used by a test that requires malloc, so make sure it is
+ in the executable. */
+ (void)malloc (1);
+
argc = (argc == 12345); /* This is silly, but we can step off of it */ /* set breakpoint 2 here */
return argc; /* set breakpoint 10 here */
} /* set breakpoint 10a here */