* d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
authorAndrew Cagney <cagney@redhat.com>
Thu, 23 May 2002 23:53:56 +0000 (23:53 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 23 May 2002 23:53:56 +0000 (23:53 +0000)
change `2002-05-22 Michael Snyder' below.
(d10v_push_arguments): Ditto.
(d10v_extract_return_value): Ditto.

gdb/ChangeLog
gdb/d10v-tdep.c

index e1f3344123432d2221c2145d398cf1a1b18a10c8..cbdde24fe80b3a89baa39943909080ebe173520c 100644 (file)
@@ -1,3 +1,10 @@
+2002-05-24  Andrew Cagney  <cagney@redhat.com>
+
+       * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
+       change `2002-05-22 Michael Snyder' below.
+       (d10v_push_arguments): Ditto.
+       (d10v_extract_return_value): Ditto.
+
 2002-05-23  Jim Blandy  <jimb@redhat.com>
 
        * macrotab.c (check_for_redefinition): Don't complain if the new
index 5bbec5cf29721db36ac68c924b188d902c7b2aac..570fed3b8c6d012728bdb758eeea12949183da82 100644 (file)
@@ -1076,7 +1076,7 @@ d10v_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
       struct type *type = check_typedef (VALUE_TYPE (arg));
       char *contents = VALUE_CONTENTS (arg);
       int len = TYPE_LENGTH (type);
-      /* printf ("push: type=%d len=%d\n", type->code, len); */
+      /* printf ("push: type=%d len=%d\n", TYPE_CODE (type), len); */
        {
          int aligned_regnum = (regnum + 1) & ~1;
          if (len <= 2 && regnum <= ARGN_REGNUM)
@@ -1130,7 +1130,7 @@ d10v_extract_return_value (struct type *type, char regbuf[REGISTER_BYTES],
                           char *valbuf)
 {
   int len;
-  /*    printf("RET: TYPE=%d len=%d r%d=0x%x\n",type->code, TYPE_LENGTH (type), RET1_REGNUM - R0_REGNUM, (int) extract_unsigned_integer (regbuf + REGISTER_BYTE(RET1_REGNUM), REGISTER_RAW_SIZE (RET1_REGNUM)));  */
+  /*    printf("RET: TYPE=%d len=%d r%d=0x%x\n", TYPE_CODE (type), TYPE_LENGTH (type), RET1_REGNUM - R0_REGNUM, (int) extract_unsigned_integer (regbuf + REGISTER_BYTE(RET1_REGNUM), REGISTER_RAW_SIZE (RET1_REGNUM)));  */
     {
       len = TYPE_LENGTH (type);
       if (len == 1)
@@ -1525,7 +1525,7 @@ d10v_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   set_gdbarch_register_byte (gdbarch, d10v_register_byte);
   set_gdbarch_register_raw_size (gdbarch, d10v_register_raw_size);
   set_gdbarch_max_register_raw_size (gdbarch, 8);
-  set_gdbarch_register_virtual_size (gdbarch, generic_register_virtual_size);
+  set_gdbarch_register_virtual_size (gdbarch, generic_register_size);
   set_gdbarch_max_register_virtual_size (gdbarch, 8);
   set_gdbarch_register_virtual_type (gdbarch, d10v_register_virtual_type);