aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2002-09-13 00:38:48 +0000
committerJoel Brobecker <brobecker@gnat.com>2002-09-13 00:38:48 +0000
commit5720643ce87e3763cdf5075d5a8c18a9af0663a3 (patch)
treedae524668a500385708a6c2a107a040dd619cdb2 /gdb/valops.c
parent3bada2a2df47a36a9c44e1cc50669124af7f6370 (diff)
downloadgdb-5720643ce87e3763cdf5075d5a8c18a9af0663a3.zip
gdb-5720643ce87e3763cdf5075d5a8c18a9af0663a3.tar.gz
gdb-5720643ce87e3763cdf5075d5a8c18a9af0663a3.tar.bz2
* 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.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c2
1 files changed, 1 insertions, 1 deletions
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);