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 | |
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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/ppc-sysv-tdep.c | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 49435ca..83b7ec9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-09-06 Daniel Jacobowitz <dan@codesourcery.com> + + * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer + types. + 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com> Jim Blandy <jimb@codesourcery.com> 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) { |