diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d2391527ef9..f93a3936ac8 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2010-06-11 Ulrich Weigand + + * gdb.base/charset.c (main): Make sure malloc gets linked in. + 2010-06-11 Tom Tromey PR gdb/9977, PR exp/11636:: diff --git a/gdb/testsuite/gdb.base/charset.c b/gdb/testsuite/gdb.base/charset.c index d7ed8659d4d..a7d64f229ca 100644 --- a/gdb/testsuite/gdb.base/charset.c +++ b/gdb/testsuite/gdb.base/charset.c @@ -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,