aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:40:38 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:19 -0700
commit780b049caa49b72635b2b84ef47d35c9c2f91473 (patch)
tree09a50605cd8ab457bea64bfbdc3cb8605e87672c /gdb
parent46670d57e303c34906cafefb09c250fe8c3c3390 (diff)
downloadgdb-780b049caa49b72635b2b84ef47d35c9c2f91473.zip
gdb-780b049caa49b72635b2b84ef47d35c9c2f91473.tar.gz
gdb-780b049caa49b72635b2b84ef47d35c9c2f91473.tar.bz2
Add target_ops argument to to_disable_tracepoint
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_disable_tracepoint>: Add argument. (target_disable_tracepoint): Add argument. * target.c (update_current_target): Update. * remote.c (remote_disable_tracepoint): Add 'self' argument.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/remote.c3
-rw-r--r--gdb/target.c2
-rw-r--r--gdb/target.h5
4 files changed, 14 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fa4b5cf..5e1e2ae 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_disable_tracepoint>: Add
+ argument.
+ (target_disable_tracepoint): Add argument.
+ * target.c (update_current_target): Update.
+ * remote.c (remote_disable_tracepoint): Add 'self' argument.
+
+2014-02-19 Tom Tromey <tromey@redhat.com>
+
* target.h (struct target_ops) <to_enable_tracepoint>: Add
argument.
(target_enable_tracepoint): Add argument.
diff --git a/gdb/remote.c b/gdb/remote.c
index 0f8acf3..c7dd65c 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -10643,7 +10643,8 @@ remote_enable_tracepoint (struct target_ops *self,
}
static void
-remote_disable_tracepoint (struct bp_location *location)
+remote_disable_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 cbd090a..69ee756 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -864,7 +864,7 @@ update_current_target (void)
(void (*) (struct target_ops *, struct bp_location *))
tcomplain);
de_fault (to_disable_tracepoint,
- (void (*) (struct bp_location *))
+ (void (*) (struct target_ops *, struct bp_location *))
tcomplain);
de_fault (to_trace_set_readonly_regions,
(void (*) (void))
diff --git a/gdb/target.h b/gdb/target.h
index 2b0ee14..7e3ad87 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -775,7 +775,8 @@ struct target_ops
struct bp_location *location);
/* Disable a tracepoint on the target. */
- void (*to_disable_tracepoint) (struct bp_location *location);
+ void (*to_disable_tracepoint) (struct target_ops *,
+ struct bp_location *location);
/* Inform the target info of memory regions that are readonly
(such as text sections), and so it should return data from
@@ -1799,7 +1800,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
(*current_target.to_enable_tracepoint) (&current_target, loc)
#define target_disable_tracepoint(loc) \
- (*current_target.to_disable_tracepoint) (loc)
+ (*current_target.to_disable_tracepoint) (&current_target, loc)
#define target_trace_start() \
(*current_target.to_trace_start) ()