From 02e6fe6a8c94fb27f360bdf0114777e9094ec5ba Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 11 Jun 2010 17:33:19 +0000 Subject: * gdb.base/charset.c (main): Make sure malloc gets linked in. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/charset.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d239152..f93a393 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 d7ed865..a7d64f2 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, -- cgit v1.1