]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
fix error in nios2-tdep.c
authorTom Tromey <tromey@redhat.com>
Wed, 12 Feb 2014 16:20:02 +0000 (09:20 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 12 Feb 2014 16:20:02 +0000 (09:20 -0700)
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
gdb/nios2-tdep.c

index cea09eee45d1312408bd277e466922bf32ff0e38..036217fa2a4e9bd0937eab3ad66b1c7ae276d0a0 100644 (file)
@@ -1,3 +1,7 @@
+2014-02-12  Tom Tromey  <tromey@redhat.com>
+
+       * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
+
 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
 
        * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
index ca653f73140af60c21ab3be243ca5c5357517e4b..7b1b640fe89bcfe343884ded68200857ea3203da 100644 (file)
@@ -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 =