mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
* gdb.base/charset.c (main): Make sure malloc gets linked in.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
2010-06-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
|
||||
|
||||
* gdb.base/charset.c (main): Make sure malloc gets linked in.
|
||||
|
||||
2010-06-11 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR gdb/9977, PR exp/11636::
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user