diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-09-06 20:21:16 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-09-06 20:21:16 +0000 |
commit | f0027ce2699c8d2a1e9f263838f2f3dd3c74b0eb (patch) | |
tree | c5afdbcdcb45a4ced957ebeca3a7501bc4fabdc8 /gdb/ppc-sysv-tdep.c | |
parent | b5d84f6ee29627841e392ebcf619e8259daab046 (diff) | |
download | gdb-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.c | 9 |
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) { |