diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2010-06-11 17:33:19 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2010-06-11 17:33:19 +0000 |
commit | 02e6fe6a8c94fb27f360bdf0114777e9094ec5ba (patch) | |
tree | 5fbcf26b4581ba81b5a38f7a5939904d22e5eeee /gdb/testsuite/gdb.base/charset.c | |
parent | 28f997cf676b8e20f0e1d0f3b98b0768d676c29b (diff) | |
download | gdb-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.c | 5 |
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, |