This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/2] add calls to frame_base_set_default
- From: Sanimir Agovic <sanimir dot agovic at intel dot com>
- To: sandra at codesourcery dot com, yao at codesourcery dot com
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 11 Feb 2014 10:26:13 +0100
- Subject: [PATCH 0/2] add calls to frame_base_set_default
- Authentication-results: sourceware.org; auth=none
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