This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/2] add calls to frame_base_set_default


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]