diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:40:25 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:46:18 -0700 |
commit | 46670d57e303c34906cafefb09c250fe8c3c3390 (patch) | |
tree | 013bce68448b99a0cc28dd5282cdc5dfd4a8e81c | |
parent | 559d2b81f07720cc7d28ae0c496448c7905db049 (diff) | |
download | gdb-46670d57e303c34906cafefb09c250fe8c3c3390.zip gdb-46670d57e303c34906cafefb09c250fe8c3c3390.tar.gz gdb-46670d57e303c34906cafefb09c250fe8c3c3390.tar.bz2 |
Add target_ops argument to to_enable_tracepoint
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_enable_tracepoint>: Add
argument.
(target_enable_tracepoint): Add argument.
* target.c (update_current_target): Update.
* remote.c (remote_enable_tracepoint): Add 'self' argument.
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/remote.c | 3 | ||||
-rw-r--r-- | gdb/target.c | 2 | ||||
-rw-r--r-- | gdb/target.h | 5 |
4 files changed, 14 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 473c0ac..fa4b5cf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,13 @@ 2014-02-19 Tom Tromey <tromey@redhat.com> + * target.h (struct target_ops) <to_enable_tracepoint>: Add + argument. + (target_enable_tracepoint): Add argument. + * target.c (update_current_target): Update. + * remote.c (remote_enable_tracepoint): Add 'self' argument. + +2014-02-19 Tom Tromey <tromey@redhat.com> + * target.h (struct target_ops) <to_download_trace_state_variable>: Add argument. (target_download_trace_state_variable): Add argument. diff --git a/gdb/remote.c b/gdb/remote.c index 8586bbc..0f8acf3 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -10625,7 +10625,8 @@ remote_download_trace_state_variable (struct target_ops *self, } static void -remote_enable_tracepoint (struct bp_location *location) +remote_enable_tracepoint (struct target_ops *self, + struct bp_location *location) { struct remote_state *rs = get_remote_state (); char addr_buf[40]; diff --git a/gdb/target.c b/gdb/target.c index 594d620..cbd090a 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -861,7 +861,7 @@ update_current_target (void) (void (*) (struct target_ops *, struct trace_state_variable *)) tcomplain); de_fault (to_enable_tracepoint, - (void (*) (struct bp_location *)) + (void (*) (struct target_ops *, struct bp_location *)) tcomplain); de_fault (to_disable_tracepoint, (void (*) (struct bp_location *)) diff --git a/gdb/target.h b/gdb/target.h index 80c58ca..2b0ee14 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -771,7 +771,8 @@ struct target_ops struct trace_state_variable *tsv); /* Enable a tracepoint on the target. */ - void (*to_enable_tracepoint) (struct bp_location *location); + void (*to_enable_tracepoint) (struct target_ops *, + struct bp_location *location); /* Disable a tracepoint on the target. */ void (*to_disable_tracepoint) (struct bp_location *location); @@ -1795,7 +1796,7 @@ extern char *target_fileio_read_stralloc (const char *filename); (*current_target.to_download_trace_state_variable) (¤t_target, tsv) #define target_enable_tracepoint(loc) \ - (*current_target.to_enable_tracepoint) (loc) + (*current_target.to_enable_tracepoint) (¤t_target, loc) #define target_disable_tracepoint(loc) \ (*current_target.to_disable_tracepoint) (loc) |