add "this" pointers to more target APIs
[binutils-gdb.git] / gdb / ppc-linux-nat.c
index 8d57b9d89d581858ae26ee7ca0d845ae7a9beb6a..b38b33ef25a78ac33b539ee16d76a49531bab9bc 100644 (file)
@@ -2283,10 +2283,10 @@ ppc_linux_stopped_data_address (struct target_ops *target, CORE_ADDR *addr_p)
 }
 
 static int
-ppc_linux_stopped_by_watchpoint (void)
+ppc_linux_stopped_by_watchpoint (struct target_ops *ops)
 {
   CORE_ADDR addr;
-  return ppc_linux_stopped_data_address (&current_target, &addr);
+  return ppc_linux_stopped_data_address (ops, &addr);
 }
 
 static int