diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-11 14:23:51 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-11 14:23:51 +0000 |
commit | f6252ce96f16941bc2f149a73da1259c838c50e6 (patch) | |
tree | f8b1ec420613eb2cebaa7625543885ad0e17377c /gdb/f-valprint.c | |
parent | b8f6cc403dd7045b0b04e6885f66dde87764278f (diff) | |
download | gdb-f6252ce96f16941bc2f149a73da1259c838c50e6.tar.gz |
* stack.c (return_command): Use frame architecture to determine
default integer return type.
* f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
to determine pointer types.
(f77_get_dynamic_upperbound): Likewise.
* objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
(resolve_msgsend): Use architecture of current frame to determine
pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT.
(resolve_msgsend_stret, resolve_msgsend_super,
resolve_msgsend_super_stret): Likewise.
Diffstat (limited to 'gdb/f-valprint.c')
-rw-r--r-- | gdb/f-valprint.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c index 69c3395c482..9dbaf184c34 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -99,10 +99,11 @@ f77_get_dynamic_lowerbound (struct type *type, int *lower_bound) current_frame_addr = get_frame_base (frame); if (current_frame_addr > 0) { + struct gdbarch *arch = get_frame_arch (frame); ptr_to_lower_bound = read_memory_typed_address (current_frame_addr + TYPE_ARRAY_LOWER_BOUND_VALUE (type), - builtin_type_void_data_ptr); + builtin_type (arch)->builtin_data_ptr); *lower_bound = read_memory_integer (ptr_to_lower_bound, 4); } else @@ -165,10 +166,11 @@ f77_get_dynamic_upperbound (struct type *type, int *upper_bound) current_frame_addr = get_frame_base (frame); if (current_frame_addr > 0) { + struct gdbarch *arch = get_frame_arch (frame); ptr_to_upper_bound = read_memory_typed_address (current_frame_addr + TYPE_ARRAY_UPPER_BOUND_VALUE (type), - builtin_type_void_data_ptr); + builtin_type (arch)->builtin_data_ptr); *upper_bound = read_memory_integer (ptr_to_upper_bound, 4); } else |