From da82bd6b65af8f3cec02621435331983b27d93a0 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 17 Dec 2013 21:33:31 -0700 Subject: Add target_ops argument to to_can_run 2014-02-19 Tom Tromey * windows-nat.c (windows_can_run): Add 'self' argument. * target.h (struct target_ops) : 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. --- gdb/target.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gdb/target.c') diff --git a/gdb/target.c b/gdb/target.c index ff61461..cfe9ee7 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -144,7 +144,7 @@ static void debug_to_terminal_ours (struct target_ops *self); 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); @@ -816,6 +816,7 @@ update_current_target (void) (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 *)) @@ -4959,11 +4960,11 @@ debug_to_has_exited (struct target_ops *self, } 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); -- cgit v1.1