From 5720643ce87e3763cdf5075d5a8c18a9af0663a3 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Fri, 13 Sep 2002 00:38:48 +0000 Subject: * 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. --- gdb/valops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/valops.c') diff --git a/gdb/valops.c b/gdb/valops.c index b2199cb..4efcd42 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -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); -- cgit v1.1