diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-07-20 22:06:59 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-07-20 22:06:59 +0000 |
commit | 51d7d80300853eac20339390e1ae05de71e7e1e3 (patch) | |
tree | e9e79f30e0c1bb648c5b12d3d21bf0bbfed3406e /gdb/testsuite/gdb.base/charset.c | |
parent | 0af8aa50ec8f74937fc4897b6bd737ca5fc227e2 (diff) | |
download | gdb-51d7d80300853eac20339390e1ae05de71e7e1e3.zip gdb-51d7d80300853eac20339390e1ae05de71e7e1e3.tar.gz gdb-51d7d80300853eac20339390e1ae05de71e7e1e3.tar.bz2 |
gdb/testsuite/
* gdb.base/charset-malloc.c: New file.
* gdb.base/charset.c (malloc_stub): New prototype.
(main): Call it instead of malloc itself.
* gdb.base/charset.exp: Use only prepare_for_testing.
(binfile): Remove the variable.
Diffstat (limited to 'gdb/testsuite/gdb.base/charset.c')
-rw-r--r-- | gdb/testsuite/gdb.base/charset.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/charset.c b/gdb/testsuite/gdb.base/charset.c index a7d64f2..5dafc90 100644 --- a/gdb/testsuite/gdb.base/charset.c +++ b/gdb/testsuite/gdb.base/charset.c @@ -114,6 +114,8 @@ init_utf32 () utf_32_string[i] = iso_8859_1_string[i] & 0xff; } +extern void malloc_stub (void); + int main () { #ifdef usestubs @@ -121,9 +123,7 @@ int main () breakpoint(); #endif - /* charset.exp wants to allocate memory for constants. So make sure malloc - gets linked into the program. */ - malloc (1); + malloc_stub (); /* Initialize ascii_string. */ init_string (ascii_string, |