diff options
Diffstat (limited to 'gdb/testsuite/gdb.base/break.c')
-rw-r--r-- | gdb/testsuite/gdb.base/break.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/break.c b/gdb/testsuite/gdb.base/break.c index db8dbdf..2c69d8b 100644 --- a/gdb/testsuite/gdb.base/break.c +++ b/gdb/testsuite/gdb.base/break.c @@ -87,6 +87,10 @@ 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; |