2007-06-09 Markus Deuling <deuling@de.ibm.com>

* gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
	* valops.c (value_allocate_space_in_inferior): Likewise.
	* gdbarch.c, gdbarch.h: Regenerate.
This commit is contained in:
Ulrich Weigand
2007-06-09 14:12:52 +00:00
parent 8da95a3048
commit aea8766f8c
5 changed files with 10 additions and 14 deletions

View 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);