Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] add calls to frame_base_set_default
@ 2014-02-11  9:26 Sanimir Agovic
  2014-02-11  9:26 ` [PATCH 1/2] nios2-tdep: set default frame base Sanimir Agovic
  2014-02-11  9:26 ` [PATCH 2/2] tic6x-tdep: " Sanimir Agovic
  0 siblings, 2 replies; 8+ messages in thread
From: Sanimir Agovic @ 2014-02-11  9:26 UTC (permalink / raw)
  To: sandra, yao; +Cc: gdb-patches

Hello,

while removing declared but not referenced variables I came across of two
findings:

 nios2-tdep.c(1350): static const struct frame_base nios2_stub_frame_base
 tic6x-tdep.c(485): static const struct frame_base tic6x_frame_base

Both are declared but not referenced. Instead of removing, I added a call
to frame_base_set_default in the appropriated *_gdbarch_init function and
passed the frame_base structure.
Build with --enable-targets=all, but I could not test my change on actual
hardware.

Looking back at the history it seems that these mentioned variables have
never been used. So removing them might be an alternative to this patch.

Sanimir Agovic (2):
  nios2-tdep: set default frame base
  tic6x-tdep: set default frame base

 gdb/nios2-tdep.c | 1 +
 gdb/tic6x-tdep.c | 1 +
 2 files changed, 2 insertions(+)

-- 
1.8.4.2


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-02-12 11:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-11  9:26 [PATCH 0/2] add calls to frame_base_set_default Sanimir Agovic
2014-02-11  9:26 ` [PATCH 1/2] nios2-tdep: set default frame base Sanimir Agovic
2014-02-12  1:22   ` Yao Qi
2014-02-12  2:24     ` Sandra Loosemore
2014-02-12 10:04     ` Agovic, Sanimir
2014-02-12 11:36       ` Yao Qi
2014-02-11  9:26 ` [PATCH 2/2] tic6x-tdep: " Sanimir Agovic
2014-02-12  0:48   ` Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox