[PATCH] sh-tdep.c cleanup

Elena Zannoni ezannoni@cygnus.com
Tue Dec 5 09:50:00 GMT 2000


This patch removes some useless fields from the gdbarch_tdep
structure. I just checked it in.

Elena

2000-12-05  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>

        * config/sh/tm-sh.h (struct gdbarch_tdep): Get rid of
        DR{2,4,6,8,10,12}_REGNUM, FV{4,8}_REGNUM, they are not used
        anywhere.
        * sh-tdep.c (sh_gdbarch_init): Don't initialize
        DR{2,4,6,8,10,12}_REGNUM, FV{4,8}_REGNUM.

Index: sh-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sh-tdep.c,v
retrieving revision 1.16
diff -c -u -p -r1.16 sh-tdep.c
--- sh-tdep.c	2000/10/31 19:35:03	1.16
+++ sh-tdep.c	2000/12/05 17:43:24
@@ -1889,16 +1889,8 @@ sh_gdbarch_init (struct gdbarch_info inf
   tdep->SSR_REGNUM = -1;
   tdep->SPC_REGNUM = -1;
   tdep->DR0_REGNUM = -1;
-  tdep->DR2_REGNUM = -1;
-  tdep->DR4_REGNUM = -1;
-  tdep->DR6_REGNUM = -1;
-  tdep->DR8_REGNUM = -1;
-  tdep->DR10_REGNUM = -1;
-  tdep->DR12_REGNUM = -1;
   tdep->DR14_REGNUM = -1;
   tdep->FV0_REGNUM = -1;
-  tdep->FV4_REGNUM = -1;
-  tdep->FV8_REGNUM = -1;
   tdep->FV12_REGNUM = -1;
   set_gdbarch_fp0_regnum (gdbarch, -1);
   set_gdbarch_num_pseudo_regs (gdbarch, 0);
@@ -2027,16 +2019,8 @@ sh_gdbarch_init (struct gdbarch_info inf
       tdep->SSR_REGNUM = 41;
       tdep->SPC_REGNUM = 42;
       tdep->DR0_REGNUM = 59;
-      tdep->DR2_REGNUM = 60;
-      tdep->DR4_REGNUM = 61;
-      tdep->DR6_REGNUM = 62;
-      tdep->DR8_REGNUM = 63;
-      tdep->DR10_REGNUM = 64;
-      tdep->DR12_REGNUM = 65;
       tdep->DR14_REGNUM = 66;
       tdep->FV0_REGNUM = 67;
-      tdep->FV4_REGNUM = 68;
-      tdep->FV8_REGNUM = 69;
       tdep->FV12_REGNUM = 70;
       break;
     default:
Index: config/sh/tm-sh.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sh/tm-sh.h,v
retrieving revision 1.9
diff -c -u -p -r1.9 tm-sh.h
--- tm-sh.h	2000/07/26 23:04:44	1.9
+++ tm-sh.h	2000/12/05 17:43:25
@@ -45,16 +45,8 @@ struct gdbarch_tdep
     int RS_REGNUM;    /* sh-dsp,      sh3-dsp            */
     int RE_REGNUM;    /* sh-dsp,      sh3-dsp            */
     int DR0_REGNUM;   /*                             sh4 */
-    int DR2_REGNUM;   /*                             sh4 */
-    int DR4_REGNUM;   /*                             sh4 */
-    int DR6_REGNUM;   /*                             sh4 */
-    int DR8_REGNUM;   /*                             sh4 */
-    int DR10_REGNUM;  /*                             sh4 */
-    int DR12_REGNUM;  /*                             sh4 */
     int DR14_REGNUM;  /*                             sh4 */
     int FV0_REGNUM;   /*                             sh4 */
-    int FV4_REGNUM;   /*                             sh4 */
-    int FV8_REGNUM;   /*                             sh4 */
     int FV12_REGNUM;  /*                             sh4 */
   };
 


More information about the Gdb-patches mailing list