cleanup: remove declared variables without any references
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.
This commit is contained in:
parent
6f569efa61
commit
ac61d2dbf7
7 changed files with 15 additions and 24 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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" };
|
||||
|
|
Loading…
Add table
Reference in a new issue