* ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
authorDaniel Jacobowitz <drow@false.org>
Thu, 6 Sep 2007 20:21:16 +0000 (20:21 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 6 Sep 2007 20:21:16 +0000 (20:21 +0000)
types.

gdb/ChangeLog
gdb/ppc-sysv-tdep.c

index 49435ca8758b75a39f621ce868db3a1ebe0f87d5..83b7ec9ce762d9bda3bb43a704ea87441ba0b416 100644 (file)
@@ -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>
 
index b1f4d66dd492aebe170ef2294a01e4c321707d58..542acbd9909d8a1d34ffd671b131f239f082676e 100644 (file)
@@ -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)
        {