forked from Imagelibrary/binutils-gdb
* gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
vector. Will be useful for Interix.
* gdbarch.h, gdbarch.c: Regenerate.
* valops.c (value_allocate_space_in_inferior): Replace hard-coded
name of the malloc function by NAME_OF_MALLOC.
This commit is contained in:
@@ -138,7 +138,7 @@ struct value *
|
||||
value_allocate_space_in_inferior (int len)
|
||||
{
|
||||
struct value *blocklen;
|
||||
struct value *val = find_function_in_inferior ("malloc");
|
||||
struct value *val = find_function_in_inferior (NAME_OF_MALLOC);
|
||||
|
||||
blocklen = value_from_longest (builtin_type_int, (LONGEST) len);
|
||||
val = call_function_by_hand (val, 1, &blocklen);
|
||||
|
||||
Reference in New Issue
Block a user