]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/sparc-tdep.c
gdb: remove current_top_target function
[thirdparty/binutils-gdb.git] / gdb / sparc-tdep.c
index 34f22879737a91e68058928d7eb7a173b9a49a16..a6df0fcb58b47132619ea59e1bd53198c1ba184a 100644 (file)
@@ -189,7 +189,7 @@ ULONGEST
 sparc_fetch_wcookie (struct gdbarch *gdbarch)
 {
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
-  struct target_ops *ops = current_top_target ();
+  struct target_ops *ops = current_inferior ()->top_target ();
   gdb_byte buf[8];
   int len;