* gdb.base/charset.c (main): Make sure malloc gets linked in.

This commit is contained in:
Ulrich Weigand
2010-06-11 17:33:19 +00:00
parent 28f997cf67
commit 02e6fe6a8c
2 changed files with 9 additions and 0 deletions

View 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::

View 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,