diff options
author | Michael Snyder <msnyder@vmware.com> | 2005-06-04 02:18:29 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2005-06-04 02:18:29 +0000 |
commit | 41d955439ed303ea6a8a0f0b8867ab67920cbe97 (patch) | |
tree | b1dd82fdfa9066d5c290544505ff39cab8b8e3f7 /gdb/target.h | |
parent | 16d53561b2495a78fd9d73479badc22d543e4123 (diff) | |
download | binutils-msnyder-tracepoint-checkpoint-branch.zip binutils-msnyder-tracepoint-checkpoint-branch.tar.gz binutils-msnyder-tracepoint-checkpoint-branch.tar.bz2 |
2005-06-03 Michael Snyder <msnyder@redhat.com>msnyder-tracepoint-checkpoint-branch
* tracepoint.c, remote.c, target.c, target.h, etc.:
Begin moving tracepoint methods into the target vector,
and migrating some of the remote protocol stuff from
tracepoint.c into remote.c.
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. |