aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:33:18 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:45:49 -0700
commitd796e1d62f3cf00c48bf8e88d3f4e83848080525 (patch)
treeba7ffcccebdf6aa9d00875d1addc5f211dbdac94 /gdb/target.h
parentff214e679c60368c23e4052c9efcc7457a3a2c43 (diff)
downloadgdb-d796e1d62f3cf00c48bf8e88d3f4e83848080525.zip
gdb-d796e1d62f3cf00c48bf8e88d3f4e83848080525.tar.gz
gdb-d796e1d62f3cf00c48bf8e88d3f4e83848080525.tar.bz2
Add target_ops argument to to_has_exited
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_has_exited>: Add argument. (target_has_exited): Add argument. * target.c (debug_to_has_exited): Add argument. (update_current_target): Update.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/target.h b/gdb/target.h
index f40dcdd..8d73472 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -507,7 +507,7 @@ struct target_ops
int (*to_remove_exec_catchpoint) (struct target_ops *, int);
int (*to_set_syscall_catchpoint) (struct target_ops *,
int, int, int, int, int *);
- int (*to_has_exited) (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);
@@ -1368,7 +1368,8 @@ int target_follow_fork (int follow_child, int detach_fork);
exit code of PID, if any. */
#define target_has_exited(pid,wait_status,exit_status) \
- (*current_target.to_has_exited) (pid,wait_status,exit_status)
+ (*current_target.to_has_exited) (&current_target, \
+ pid,wait_status,exit_status)
/* The debugger has completed a blocking wait() call. There is now
some process event that must be processed. This function should