diff options
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h index 582fa78..eb75f46 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -422,6 +422,13 @@ struct target_ops gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, LONGEST len); + /* Tracepoint start. */ + int (*to_start_tracepoints) (char *, int); + /* Tracepoint stop. */ + int (*to_stop_tracepoints) (char *, int); + /* Tracepoint status. */ + int (*to_tracepoint_status) (char *, int); + int to_magic; /* Need sub-structure for target machine related rather than comm related? */ @@ -1067,6 +1074,14 @@ extern int target_stopped_data_address_p (struct target_ops *); #define target_stopped_data_address_p(CURRENT_TARGET) (1) #endif +#define target_start_tracepoints(ARGS, FROM_TTY) \ + (*current_target.to_start_tracepoints) (ARGS, FROM_TTY) +#define target_stop_tracepoints(ARGS, FROM_TTY) \ + (*current_target.to_stop_tracepoints) (ARGS, FROM_TTY) +#define target_tracepoint_status(ARGS, FROM_TTY) \ + (*current_target.to_tracepoint_status) (ARGS, FROM_TTY) + + /* This will only be defined by a target that supports catching vfork events, such as HP-UX. |