diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:39:36 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:46:15 -0700 |
commit | ecae04e1df45d8ea47f700fde6cb1782c143f5d1 (patch) | |
tree | f16dddd1b781601fe4f798f823b82ccadc1ae818 /gdb/target.h | |
parent | fab5aa7c3fe5e60c877469a1e4c9c551e343409e (diff) | |
download | binutils-ecae04e1df45d8ea47f700fde6cb1782c143f5d1.zip binutils-ecae04e1df45d8ea47f700fde6cb1782c143f5d1.tar.gz binutils-ecae04e1df45d8ea47f700fde6cb1782c143f5d1.tar.bz2 |
Add target_ops argument to to_trace_init
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_trace_init>: Add argument.
(target_trace_init): Add argument.
* target.c (update_current_target): Update.
* remote.c (remote_trace_init): Add 'self' argument.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target.h b/gdb/target.h index 626da3e..76d2a8a 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -756,7 +756,7 @@ struct target_ops /* Tracepoint-related operations. */ /* Prepare the target for a tracing run. */ - void (*to_trace_init) (void); + void (*to_trace_init) (struct target_ops *); /* Send full details of a tracepoint location to the target. */ void (*to_download_tracepoint) (struct bp_location *location); @@ -1781,7 +1781,7 @@ extern char *target_fileio_read_stralloc (const char *filename); /* Tracepoint-related operations. */ #define target_trace_init() \ - (*current_target.to_trace_init) () + (*current_target.to_trace_init) (¤t_target) #define target_download_tracepoint(t) \ (*current_target.to_download_tracepoint) (t) |