* gdb.base/break.c (main): Call malloc.
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 28 Nov 2006 16:04:00 +0000 (16:04 +0000)
committerNathan Sidwell <nathan@codesourcery.com>
Tue, 28 Nov 2006 16:04:00 +0000 (16:04 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/break.c

index 95007e9c49510ff57aa3ff6d2b78a8a39aa71869..40685ea9174f3445af4600102a50836462221522 100644 (file)
@@ -1,4 +1,6 @@
-2006-11-28  Nathan Sidwell  <nathan@codesourcery.com>
+2006-11-27  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * gdb.base/break.c (main): Call malloc.
 
        * gdb.threads/linux-dp.exp: Read thread table before and after
        creating each philosopher and verify it.
index db8dbdf8145085f8959bf96e24c5386eac03e907..2c69d8b4abdd9890dc40104031da0acd31c22855 100644 (file)
@@ -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;