From 1ba3afa502a1e1e9611179a9f78f2dd55f1aacbf Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 8 Aug 2004 22:16:16 +0000 Subject: Correct handling of union return values on vax. Fix stepping over functions on vax. ok tdeval@ --- gnu/usr.bin/binutils/gdb/vax-tdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/usr.bin/binutils/gdb/vax-tdep.c b/gnu/usr.bin/binutils/gdb/vax-tdep.c index 1e8986cda52..7db432eef0e 100644 --- a/gnu/usr.bin/binutils/gdb/vax-tdep.c +++ b/gnu/usr.bin/binutils/gdb/vax-tdep.c @@ -212,7 +212,7 @@ vax_return_value (struct gdbarch *gdbarch, struct type *type, char buf[8]; if (TYPE_CODE (type) == TYPE_CODE_STRUCT - || TYPE_CODE (type) == TYPE_CODE_STRUCT + || TYPE_CODE (type) == TYPE_CODE_UNION || TYPE_CODE (type) == TYPE_CODE_ARRAY) return RETURN_VALUE_STRUCT_CONVENTION; @@ -369,7 +369,7 @@ vax_frame_this_id (struct frame_info *next_frame, void **this_cache, if (cache->base == 0) return; - (*this_id) = frame_id_build (cache->base, frame_pc_unwind (next_frame)); + (*this_id) = frame_id_build (cache->base, frame_func_unwind (next_frame)); } static void -- cgit v1.2.3