This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[FYI] fix error in nios2-tdep.c
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tromey at redhat dot com>
- Date: Wed, 12 Feb 2014 09:21:04 -0700
- Subject: [FYI] fix error in nios2-tdep.c
- Authentication-results: sourceware.org; auth=none
Since this change:
2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
* nios2-tdep.c (nios2_stub_frame_base): Remove global.
nios2-tdep hasn't built:
../../binutils-gdb/gdb/nios2-tdep.c:1337:1: error: ânios2_stub_frame_base_addressâ defined but not used [-Werror=unused-function]
This patch removes the offending function.
2014-02-12 Tom Tromey <tromey@redhat.com>
* nios2-tdep.c (nios2_stub_frame_base_address): Remove.
---
gdb/ChangeLog | 4 ++++
gdb/nios2-tdep.c | 12 ------------
2 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/gdb/nios2-tdep.c b/gdb/nios2-tdep.c
index ca653f7..7b1b640 100644
--- a/gdb/nios2-tdep.c
+++ b/gdb/nios2-tdep.c
@@ -1330,18 +1330,6 @@ nios2_stub_frame_sniffer (const struct frame_unwind *self,
return 0;
}
-/* Implement the this_base, this_locals, and this_args hooks
- for the stub unwinder. */
-
-static CORE_ADDR
-nios2_stub_frame_base_address (struct frame_info *this_frame, void **this_cache)
-{
- struct trad_frame_cache *this_trad_cache
- = nios2_stub_frame_cache (this_frame, this_cache);
-
- return trad_frame_get_this_base (this_trad_cache);
-}
-
/* Define the data structures for the stub unwinder. */
static const struct frame_unwind nios2_stub_frame_unwind =
--
1.8.1.4