diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-09 14:12:52 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-09 14:12:52 +0000 |
commit | aea8766f8c5e652d50f4a0515f9f6dfb56176617 (patch) | |
tree | e12aee8c9b34bd3c5ea31199ab25df73572b2692 /gdb/valops.c | |
parent | 8da95a3048cad9615e407674f8da4e997eb8752f (diff) | |
download | gdb-aea8766f8c5e652d50f4a0515f9f6dfb56176617.zip gdb-aea8766f8c5e652d50f4a0515f9f6dfb56176617.tar.gz gdb-aea8766f8c5e652d50f4a0515f9f6dfb56176617.tar.bz2 |
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.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index d32bb02..8cbda26 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -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); |