+2014-02-19 Tom Tromey <tromey@redhat.com>
+
+ * windows-nat.c (windows_can_run): Add 'self' argument.
+ * target.h (struct target_ops) <to_can_run>: Add argument.
+ (target_can_run): Add argument.
+ * target.c (debug_to_can_run): Add argument.
+ (update_current_target): Update.
+ * nto-procfs.c (procfs_can_run): Add 'self' argument.
+ * inf-child.c (inf_child_can_run): Add 'self' argument.
+ * go32-nat.c (go32_can_run): Add 'self' argument.
+
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_has_exited>: Add argument.
}
static int
-go32_can_run (void)
+go32_can_run (struct target_ops *self)
{
return 1;
}
}
static int
-inf_child_can_run (void)
+inf_child_can_run (struct target_ops *self)
{
return 1;
}
static void procfs_open (char *, int);
-static int procfs_can_run (void);
+static int procfs_can_run (struct target_ops *self);
static int procfs_xfer_memory (CORE_ADDR, gdb_byte *, int, int,
struct mem_attrib *attrib,
/* Mark our target-struct as eligible for stray "run" and "attach"
commands. */
static int
-procfs_can_run (void)
+procfs_can_run (struct target_ops *self)
{
return 1;
}
static void debug_to_load (struct target_ops *self, char *, int);
-static int debug_to_can_run (void);
+static int debug_to_can_run (struct target_ops *self);
static void debug_to_stop (ptid_t);
(int (*) (struct target_ops *, int, int, int *))
return_zero);
de_fault (to_can_run,
+ (int (*) (struct target_ops *))
return_zero);
de_fault (to_extra_thread_info,
(char *(*) (struct thread_info *))
}
static int
-debug_to_can_run (void)
+debug_to_can_run (struct target_ops *self)
{
int retval;
- retval = debug_target.to_can_run ();
+ retval = debug_target.to_can_run (&debug_target);
fprintf_unfiltered (gdb_stdlog, "target_can_run () = %d\n", retval);
int, int, int, int, int *);
int (*to_has_exited) (struct target_ops *, int, int, int *);
void (*to_mourn_inferior) (struct target_ops *);
- int (*to_can_run) (void);
+ int (*to_can_run) (struct target_ops *);
/* Documentation of this routine is provided with the corresponding
target_* macro. */
/* Does target have enough data to do a run or attach command? */
#define target_can_run(t) \
- ((t)->to_can_run) ()
+ ((t)->to_can_run) (t)
/* Set list of signals to be handled in the target.
}
static int
-windows_can_run (void)
+windows_can_run (struct target_ops *self)
{
return 1;
}