aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/charset.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2010-06-11 17:33:19 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2010-06-11 17:33:19 +0000
commit02e6fe6a8c94fb27f360bdf0114777e9094ec5ba (patch)
tree5fbcf26b4581ba81b5a38f7a5939904d22e5eeee /gdb/testsuite/gdb.base/charset.c
parent28f997cf676b8e20f0e1d0f3b98b0768d676c29b (diff)
downloadgdb-02e6fe6a8c94fb27f360bdf0114777e9094ec5ba.zip
gdb-02e6fe6a8c94fb27f360bdf0114777e9094ec5ba.tar.gz
gdb-02e6fe6a8c94fb27f360bdf0114777e9094ec5ba.tar.bz2
* gdb.base/charset.c (main): Make sure malloc gets linked in.
Diffstat (limited to 'gdb/testsuite/gdb.base/charset.c')
-rw-r--r--gdb/testsuite/gdb.base/charset.c5
1 files changed, 5 insertions, 0 deletions
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,