aboutsummaryrefslogtreecommitdiff
path: root/gdb/ppc-sysv-tdep.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-09-06 20:21:16 +0000
committerDaniel Jacobowitz <drow@false.org>2007-09-06 20:21:16 +0000
commitf0027ce2699c8d2a1e9f263838f2f3dd3c74b0eb (patch)
treec5afdbcdcb45a4ced957ebeca3a7501bc4fabdc8 /gdb/ppc-sysv-tdep.c
parentb5d84f6ee29627841e392ebcf619e8259daab046 (diff)
downloadgdb-f0027ce2699c8d2a1e9f263838f2f3dd3c74b0eb.zip
gdb-f0027ce2699c8d2a1e9f263838f2f3dd3c74b0eb.tar.gz
gdb-f0027ce2699c8d2a1e9f263838f2f3dd3c74b0eb.tar.bz2
* ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
types.
Diffstat (limited to 'gdb/ppc-sysv-tdep.c')
-rw-r--r--gdb/ppc-sysv-tdep.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c
index b1f4d66..542acbd 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)
{