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.
This commit is contained in:
Tom Tromey
2013-12-17 21:40:38 -07:00
parent 46670d57e3
commit 780b049caa
4 changed files with 14 additions and 4 deletions

View File

@ -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) ()