Imported Upstream version 7.9
[platform/upstream/gdb.git] / gdb / gdbserver / linux-sparc-low.c
index f2fc8cb..8f5cdbf 100644 (file)
@@ -1,5 +1,5 @@
 /* Low level interface to ptrace, for the remote server for GDB.
-   Copyright (C) 1995-2014 Free Software Foundation, Inc.
+   Copyright (C) 1995-2015 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -263,7 +263,7 @@ sparc_breakpoint_at (CORE_ADDR where)
 static CORE_ADDR
 sparc_reinsert_addr (void)
 {
-  struct regcache *regcache = get_thread_regcache (current_inferior, 1);
+  struct regcache *regcache = get_thread_regcache (current_thread, 1);
   CORE_ADDR lr;
   /* O7 is the equivalent to the 'lr' of other archs.  */
   collect_register_by_name (regcache, "o7", &lr);