diff options
author | Sanimir Agovic <sanimir.agovic@intel.com> | 2014-02-13 12:41:24 +0000 |
---|---|---|
committer | Sanimir Agovic <sanimir.agovic@intel.com> | 2014-02-13 13:35:38 +0000 |
commit | ac61d2dbf7df54bbb7cef09ac9b5f61541da065b (patch) | |
tree | e1cffb08c3eb68a2c5ce36cae85286e61ef54668 /gdb | |
parent | 6f569efa614f0d0dd246ff196cb89b38714ea1d2 (diff) | |
download | gdb-ac61d2dbf7df54bbb7cef09ac9b5f61541da065b.zip gdb-ac61d2dbf7df54bbb7cef09ac9b5f61541da065b.tar.gz gdb-ac61d2dbf7df54bbb7cef09ac9b5f61541da065b.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 11 | ||||
-rw-r--r-- | gdb/cris-tdep.c | 4 | ||||
-rw-r--r-- | gdb/h8300-tdep.c | 2 | ||||
-rw-r--r-- | gdb/hppa-tdep.c | 12 | ||||
-rw-r--r-- | gdb/mipsnbsd-tdep.c | 4 | ||||
-rw-r--r-- | gdb/ravenscar-thread.c | 2 | ||||
-rw-r--r-- | gdb/rs6000-tdep.c | 4 |
7 files changed, 15 insertions, 24 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f8582a1..4762690 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c index 30bcbfc..6861e2b 100644 --- a/gdb/cris-tdep.c +++ b/gdb/cris-tdep.c @@ -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); diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c index 98343e0..f847085 100644 --- a/gdb/h8300-tdep.c +++ b/gdb/h8300-tdep.c @@ -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 diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 53b6c95..1654529 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -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 diff --git a/gdb/mipsnbsd-tdep.c b/gdb/mipsnbsd-tdep.c index 4773ae0..9742150 100644 --- a/gdb/mipsnbsd-tdep.c +++ b/gdb/mipsnbsd-tdep.c @@ -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 diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c index fc87d79..67a101b 100644 --- a/gdb/ravenscar-thread.c +++ b/gdb/ravenscar-thread.c @@ -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); diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 58afc53..bbaf459 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -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" }; |