]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/valops.c
2007-06-09 Markus Deuling <deuling@de.ibm.com>
[thirdparty/binutils-gdb.git] / gdb / valops.c
index d32bb0273a4face552dbda8375fe4a4e5ed207df..8cbda262dac4a6e84570b178a84100159c77fc73 100644 (file)
@@ -182,7 +182,8 @@ struct value *
 value_allocate_space_in_inferior (int len)
 {
   struct value *blocklen;
-  struct value *val = find_function_in_inferior (NAME_OF_MALLOC);
+  struct value *val = find_function_in_inferior
+                       (gdbarch_name_of_malloc (current_gdbarch));
 
   blocklen = value_from_longest (builtin_type_int, (LONGEST) len);
   val = call_function_by_hand (val, 1, &blocklen);