From f0027ce2699c8d2a1e9f263838f2f3dd3c74b0eb Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 6 Sep 2007 20:21:16 +0000 Subject: [PATCH] * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer types. --- gdb/ChangeLog | 5 +++++ gdb/ppc-sysv-tdep.c | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 49435ca8758..83b7ec9ce76 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-09-06 Daniel Jacobowitz + + * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer + types. + 2007-09-04 Daniel Jacobowitz Jim Blandy diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c index b1f4d66dd49..542acbd9909 100644 --- a/gdb/ppc-sysv-tdep.c +++ b/gdb/ppc-sysv-tdep.c @@ -388,8 +388,13 @@ do_ppc_sysv_return_value (struct gdbarch *gdbarch, struct type *type, } return RETURN_VALUE_REGISTER_CONVENTION; } - if (TYPE_CODE (type) == TYPE_CODE_INT - && TYPE_LENGTH (type) <= tdep->wordsize) + else if ((TYPE_CODE (type) == TYPE_CODE_INT + || TYPE_CODE (type) == TYPE_CODE_CHAR + || TYPE_CODE (type) == TYPE_CODE_BOOL + || TYPE_CODE (type) == TYPE_CODE_PTR + || TYPE_CODE (type) == TYPE_CODE_REF + || TYPE_CODE (type) == TYPE_CODE_ENUM) + && TYPE_LENGTH (type) <= tdep->wordsize) { if (readbuf) { -- 2.30.2