2006-11-22 Nathan Sidwell * gdb.base/break.c (need_malloc): New. Index: testsuite/gdb.base/break.c =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/break.c,v retrieving revision 1.5 diff -c -3 -p -r1.5 break.c *** testsuite/gdb.base/break.c 13 Jun 2006 08:46:17 -0000 1.5 --- testsuite/gdb.base/break.c 22 Nov 2006 15:17:42 -0000 *************** extern void marker3 (); *** 66,71 **** --- 66,78 ---- extern void marker4 (); #endif + /* We're used by a test that requires malloc, so make sure it is in + the executable. */ + void *need_malloc () + { + return malloc (1); + } + /* * This simple classical example of recursion is useful for * testing stack backtraces and such.