]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* 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 d2391527ef90bcf0434742eeaca8202086d430b6..f93a3936ac8b714e6fcaaadf67326d2a8b9fab0e 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 d7ed8659d4dfb456651e14a7427a0c71698df549..a7d64f229ca5cd08b9f5caf491c15a87aedcbb9a 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,