Wed Apr 23 11:18:45 1997 Jeffrey A Law (law@cygnus.com)
authorJeff Law <law@redhat.com>
Wed, 23 Apr 1997 17:22:34 +0000 (17:22 +0000)
committerJeff Law <law@redhat.com>
Wed, 23 Apr 1997 17:22:34 +0000 (17:22 +0000)
        * config/mn10200/tm-mn10200.h (STORE_RETURN_VALUE): Pointers are
        returned in $a0.
        (EXTRACT_RETURN_VALUE): Likewise.

gdb/ChangeLog
gdb/config/mn10200/tm-mn10200.h

index bbf86fce3abdd4766379bdd3157e53225d6b2ff6..b12ff40c20e614b621e1cda01b071c1fd6772631 100644 (file)
@@ -1,3 +1,9 @@
+Wed Apr 23 11:18:45 1997  Jeffrey A Law  (law@cygnus.com)
+
+       * config/mn10200/tm-mn10200.h (STORE_RETURN_VALUE): Pointers are
+       returned in $a0.
+       (EXTRACT_RETURN_VALUE): Likewise.
+
 Tue Apr 22 11:58:15 1997  Fred Fish  <fnf@cygnus.com>
 
        * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Define to use
index 9977fde7c2e5c7f17167960a40f206d5c129dfd4..dfe95cb6bca163604fc3419d68fcb42bc00e52f7 100644 (file)
@@ -129,6 +129,10 @@ extern CORE_ADDR mn10200_frame_saved_pc   PARAMS ((struct frame_info *));
        memcpy (VALBUF, REGBUF + REGISTER_BYTE (0), 2); \
        memcpy (VALBUF + 2, REGBUF + REGISTER_BYTE (1), 2); \
       } \
+    else if (TYPE_CODE (TYPE) == TYPE_CODE_PTR)\
+      { \
+        memcpy (VALBUF, REGBUF + REGISTER_BYTE (4), TYPE_LENGTH (TYPE)); \
+      } \
     else \
       { \
         memcpy (VALBUF, REGBUF + REGISTER_BYTE (0), TYPE_LENGTH (TYPE)); \
@@ -148,6 +152,10 @@ extern CORE_ADDR mn10200_frame_saved_pc   PARAMS ((struct frame_info *));
        write_register_bytes (REGISTER_BYTE (0), VALBUF, 2); \
        write_register_bytes (REGISTER_BYTE (1), VALBUF + 2, 2); \
       } \
+    else if (TYPE_CODE (TYPE) == TYPE_CODE_PTR)\
+      { \
+        write_register_bytes (REGISTER_BYTE (4), VALBUF, TYPE_LENGTH (TYPE)); \
+      } \
     else \
       { \
         write_register_bytes (REGISTER_BYTE (0), VALBUF, TYPE_LENGTH (TYPE)); \