* gdb.base/charset.c (main): Make sure malloc gets linked in.
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 11 Jun 2010 17:33:19 +0000 (17:33 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 11 Jun 2010 17:33:19 +0000 (17:33 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/charset.c

index d239152..f93a393 100644 (file)
@@ -1,3 +1,7 @@
+2010-06-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.base/charset.c (main): Make sure malloc gets linked in.
+
 2010-06-11  Tom Tromey  <tromey@redhat.com>
 
        PR gdb/9977, PR exp/11636::
index d7ed865..a7d64f2 100644 (file)
@@ -120,6 +120,11 @@ int main ()
   set_debug_traps();
   breakpoint();
 #endif
+
+  /* charset.exp wants to allocate memory for constants.  So make sure malloc
+     gets linked into the program.  */
+  malloc (1);
+
   /* Initialize ascii_string.  */
   init_string (ascii_string,
                120,