cleanup: remove declared variables without any references
authorSanimir Agovic <sanimir.agovic@intel.com>
Thu, 13 Feb 2014 12:41:24 +0000 (12:41 +0000)
committerSanimir Agovic <sanimir.agovic@intel.com>
Thu, 13 Feb 2014 13:35:38 +0000 (13:35 +0000)
2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>

* cris-tdep.c (cris_supply_gregset): Remove zerobuf.
(_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
* h8300-tdep.c (setmachinelist): Remove global.
* hppa-tdep.c (hppa_sigtramp): Remove global.
* mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
* ravenscar-thread.c (update_target_observer): Remove global.
* rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.

gdb/ChangeLog
gdb/cris-tdep.c
gdb/h8300-tdep.c
gdb/hppa-tdep.c
gdb/mipsnbsd-tdep.c
gdb/ravenscar-thread.c
gdb/rs6000-tdep.c

index f8582a1a57efd42995decee43b8e75df9721bc56..4762690baa4652f7705b228de3c633febb09568e 100644 (file)
@@ -1,3 +1,14 @@
+2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
+
+       * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
+       (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
+       * h8300-tdep.c (setmachinelist): Remove global.
+       * hppa-tdep.c (hppa_sigtramp): Remove global.
+       * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
+       RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
+       * ravenscar-thread.c (update_target_observer): Remove global.
+       * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
+
 2014-02-12  Tom Tromey  <tromey@redhat.com>
 
        * common/rsp-low.c: Update comments.
index 30bcbfc0749d69e7f66bfb0d4204ea1ae527b689..6861e2ba65b7a9ea72cf1e30fc23d3d72aa7fc2d 100644 (file)
@@ -3833,7 +3833,6 @@ cris_supply_gregset (struct regcache *regcache, cris_elf_gregset_t *gregsetp)
   struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
   int i;
   cris_elf_greg_t *regp = *gregsetp;
-  static char zerobuf[4] = {0};
 
   /* The kernel dumps all 32 registers as unsigned longs, but supply_register
      knows about the actual size of each register so that's no problem.  */
@@ -3901,9 +3900,6 @@ extern initialize_file_ftype _initialize_cris_tdep; /* -Wmissing-prototypes */
 void
 _initialize_cris_tdep (void)
 {
-  static struct cmd_list_element *cris_set_cmdlist;
-  static struct cmd_list_element *cris_show_cmdlist;
-
   struct cmd_list_element *c;
 
   gdbarch_register (bfd_arch_cris, cris_gdbarch_init, cris_dump_tdep);
index 98343e0607300662adccbebe1cd6a2dd0f5e48e1..f847085257e5df8624439a17c44cbf9ceaa29681 100644 (file)
@@ -937,8 +937,6 @@ h8300h_return_value (struct gdbarch *gdbarch, struct value *function,
   return RETURN_VALUE_REGISTER_CONVENTION;
 }
 
-static struct cmd_list_element *setmachinelist;
-
 /* Implementation of 'register_sim_regno' gdbarch method.  */
 
 static int
index 53b6c950a4414b658396212c9e23febe3875ac82..165452975f1387b4f9be5d98bd2e6806f5571194 100644 (file)
@@ -2775,18 +2775,6 @@ static struct insn_pattern hppa_plt_stub[] = {
   { 0, 0 }
 };
 
-static struct insn_pattern hppa_sigtramp[] = {
-  /* ldi 0, %r25 or ldi 1, %r25 */
-  { 0x34190000, 0xfffffffd },
-  /* ldi __NR_rt_sigreturn, %r20 */
-  { 0x3414015a, 0xffffffff },
-  /* be,l 0x100(%sr2, %r0), %sr0, %r31 */
-  { 0xe4008200, 0xffffffff },
-  /* nop */
-  { 0x08000240, 0xffffffff },
-  { 0, 0 }
-};
-
 /* Maximum number of instructions on the patterns above.  */
 #define HPPA_MAX_INSN_PATTERN_LEN      4
 
index 4773ae08ead0335b016d1926dd6eb4c1d11391c4..97421504064225f471027e1b81fa5f5eefd16f83 100644 (file)
@@ -211,6 +211,8 @@ mipsnbsd_fill_fpreg (const struct regcache *regcache, char *fpregs, int regno)
                              * mips_isa_regsize (gdbarch)));
 }
 
+#if 0
+
 /* Under NetBSD/mips, signal handler invocations can be identified by the
    designated code sequence that is used to return from a signal handler.
    In particular, the return address of a signal handler points to the
@@ -244,6 +246,8 @@ static const unsigned char sigtramp_retcode_mipseb[RETCODE_SIZE] =
   0x00, 0x00, 0x00, 0x0c,      /* syscall */
 };
 
+#endif
+
 /* Figure out where the longjmp will land.  We expect that we have
    just entered longjmp and haven't yet setup the stack frame, so the
    args are still in the argument regs.  MIPS_A0_REGNUM points at the
index fc87d79495c609ac8b33a95b57091de0a58e8049..67a101b15c57735769a5614e69c88e02ad5a4f51 100644 (file)
@@ -52,8 +52,6 @@ static const char first_task_name[] = "system__tasking__debug__first_task";
 static const char ravenscar_runtime_initializer[] =
   "system__bb__threads__initialize";
 
-static struct observer *update_target_observer = NULL;
-
 static void ravenscar_find_new_threads (struct target_ops *ops);
 static ptid_t ravenscar_running_thread (void);
 static char *ravenscar_extra_thread_info (struct thread_info *tp);
index 58afc530ba07964d346988f92c63b2591a37a805..bbaf4590a51a17a8a10ca475196c0ffbf02a63b9 100644 (file)
@@ -3652,10 +3652,6 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
        "r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23",
        "r24", "r25", "r26", "r27", "r28", "r29", "r30", "r31"
       };
-      static const char *const segment_regs[] = {
-       "sr0", "sr1", "sr2", "sr3", "sr4", "sr5", "sr6", "sr7",
-       "sr8", "sr9", "sr10", "sr11", "sr12", "sr13", "sr14", "sr15"
-      };
       const struct tdesc_feature *feature;
       int i, valid_p;
       static const char *const msr_names[] = { "msr", "ps" };
This page took 0.043399 seconds and 4 git commands to generate.