aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:33:31 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:45:50 -0700
commitda82bd6b65af8f3cec02621435331983b27d93a0 (patch)
treefa40610d2bee1e86524890eeddcb480a4951266c /gdb/target.c
parentd796e1d62f3cf00c48bf8e88d3f4e83848080525 (diff)
downloadbinutils-da82bd6b65af8f3cec02621435331983b27d93a0.zip
binutils-da82bd6b65af8f3cec02621435331983b27d93a0.tar.gz
binutils-da82bd6b65af8f3cec02621435331983b27d93a0.tar.bz2
Add target_ops argument to to_can_run
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.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c7
1 files changed, 4 insertions, 3 deletions
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);