Add target_ops argument to to_trace_stop
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_trace_stop>: Add argument. (target_trace_stop): Add argument. * target.c (update_current_target): Update. * remote.c (remote_trace_stop): Add 'self' argument.
This commit is contained in:
parent
db90e85c81
commit
74499f1bf2
4 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
|||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* target.h (struct target_ops) <to_trace_stop>: Add argument.
|
||||
(target_trace_stop): Add argument.
|
||||
* target.c (update_current_target): Update.
|
||||
* remote.c (remote_trace_stop): Add 'self' argument.
|
||||
|
||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
|
||||
|
|
|
@ -10820,7 +10820,7 @@ remote_get_tracepoint_status (struct target_ops *self, struct breakpoint *bp,
|
|||
}
|
||||
|
||||
static void
|
||||
remote_trace_stop (void)
|
||||
remote_trace_stop (struct target_ops *self)
|
||||
{
|
||||
putpkt ("QTStop");
|
||||
remote_get_noisy_reply (&target_buf, &target_buf_size);
|
||||
|
|
|
@ -880,7 +880,7 @@ update_current_target (void)
|
|||
struct uploaded_tp *))
|
||||
tcomplain);
|
||||
de_fault (to_trace_stop,
|
||||
(void (*) (void))
|
||||
(void (*) (struct target_ops *))
|
||||
tcomplain);
|
||||
de_fault (to_trace_find,
|
||||
(int (*) (enum trace_find_type, int, CORE_ADDR, CORE_ADDR, int *))
|
||||
|
|
|
@ -794,7 +794,7 @@ struct target_ops
|
|||
struct uploaded_tp *utp);
|
||||
|
||||
/* Stop a trace run. */
|
||||
void (*to_trace_stop) (void);
|
||||
void (*to_trace_stop) (struct target_ops *);
|
||||
|
||||
/* Ask the target to find a trace frame of the given type TYPE,
|
||||
using NUM, ADDR1, and ADDR2 as search parameters. Returns the
|
||||
|
@ -1816,7 +1816,7 @@ extern char *target_fileio_read_stralloc (const char *filename);
|
|||
(*current_target.to_get_tracepoint_status) (¤t_target, tp, utp)
|
||||
|
||||
#define target_trace_stop() \
|
||||
(*current_target.to_trace_stop) ()
|
||||
(*current_target.to_trace_stop) (¤t_target)
|
||||
|
||||
#define target_trace_find(type,num,addr1,addr2,tpp) \
|
||||
(*current_target.to_trace_find) ((type), (num), (addr1), (addr2), (tpp))
|
||||
|
|
Loading…
Reference in a new issue