From: Nathan Sidwell Date: Tue, 28 Nov 2006 16:04:00 +0000 (+0000) Subject: * gdb.base/break.c (main): Call malloc. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f556d5e59d4d48060f958a084e7ddcf25fe99d5c;p=binutils-gdb.git * gdb.base/break.c (main): Call malloc. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 95007e9c495..40685ea9174 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,4 +1,6 @@ -2006-11-28 Nathan Sidwell +2006-11-27 Nathan Sidwell + + * gdb.base/break.c (main): Call malloc. * gdb.threads/linux-dp.exp: Read thread table before and after creating each philosopher and verify it. diff --git a/gdb/testsuite/gdb.base/break.c b/gdb/testsuite/gdb.base/break.c index db8dbdf8145..2c69d8b4abd 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 \n"); return 1;