mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
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:
@ -1,3 +1,11 @@
|
|||||||
|
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>
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* target.h (struct target_ops) <to_enable_tracepoint>: Add
|
* target.h (struct target_ops) <to_enable_tracepoint>: Add
|
||||||
|
@ -10643,7 +10643,8 @@ remote_enable_tracepoint (struct target_ops *self,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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 ();
|
struct remote_state *rs = get_remote_state ();
|
||||||
char addr_buf[40];
|
char addr_buf[40];
|
||||||
|
@ -864,7 +864,7 @@ update_current_target (void)
|
|||||||
(void (*) (struct target_ops *, struct bp_location *))
|
(void (*) (struct target_ops *, struct bp_location *))
|
||||||
tcomplain);
|
tcomplain);
|
||||||
de_fault (to_disable_tracepoint,
|
de_fault (to_disable_tracepoint,
|
||||||
(void (*) (struct bp_location *))
|
(void (*) (struct target_ops *, struct bp_location *))
|
||||||
tcomplain);
|
tcomplain);
|
||||||
de_fault (to_trace_set_readonly_regions,
|
de_fault (to_trace_set_readonly_regions,
|
||||||
(void (*) (void))
|
(void (*) (void))
|
||||||
|
@ -775,7 +775,8 @@ struct target_ops
|
|||||||
struct bp_location *location);
|
struct bp_location *location);
|
||||||
|
|
||||||
/* Disable a tracepoint on the target. */
|
/* 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
|
/* Inform the target info of memory regions that are readonly
|
||||||
(such as text sections), and so it should return data from
|
(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) (¤t_target, loc)
|
(*current_target.to_enable_tracepoint) (¤t_target, loc)
|
||||||
|
|
||||||
#define target_disable_tracepoint(loc) \
|
#define target_disable_tracepoint(loc) \
|
||||||
(*current_target.to_disable_tracepoint) (loc)
|
(*current_target.to_disable_tracepoint) (¤t_target, loc)
|
||||||
|
|
||||||
#define target_trace_start() \
|
#define target_trace_start() \
|
||||||
(*current_target.to_trace_start) ()
|
(*current_target.to_trace_start) ()
|
||||||
|
Reference in New Issue
Block a user