diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 14:11:12 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:47:55 -0700 |
commit | ace92e7d1435c46e3085f1183f957ab372b1f4a8 (patch) | |
tree | 88c4df7201804103a4e42537f6389a81de1ef557 /gdb/target-delegates.c | |
parent | 081204679d54dc5c6d7801dd4cc6decd949054b3 (diff) | |
download | gdb-ace92e7d1435c46e3085f1183f957ab372b1f4a8.zip gdb-ace92e7d1435c46e3085f1183f957ab372b1f4a8.tar.gz gdb-ace92e7d1435c46e3085f1183f957ab372b1f4a8.tar.bz2 |
convert to_get_raw_trace_data
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (update_current_target): Don't inherit or default
to_get_raw_trace_data.
* target.h (struct target_ops) <to_get_raw_trace_data>: Use
TARGET_DEFAULT_NORETURN.
Diffstat (limited to 'gdb/target-delegates.c')
-rw-r--r-- | gdb/target-delegates.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c index 4d5ca99..cdf2905 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -845,6 +845,19 @@ tdefault_upload_trace_state_variables (struct target_ops *self, struct uploaded_ return 0; } +static LONGEST +delegate_get_raw_trace_data (struct target_ops *self, gdb_byte *arg1, ULONGEST arg2, LONGEST arg3) +{ + self = self->beneath; + return self->to_get_raw_trace_data (self, arg1, arg2, arg3); +} + +static LONGEST +tdefault_get_raw_trace_data (struct target_ops *self, gdb_byte *arg1, ULONGEST arg2, LONGEST arg3) +{ + tcomplain (); +} + static int delegate_supports_btrace (struct target_ops *self) { @@ -1005,6 +1018,8 @@ install_delegators (struct target_ops *ops) ops->to_upload_tracepoints = delegate_upload_tracepoints; if (ops->to_upload_trace_state_variables == NULL) ops->to_upload_trace_state_variables = delegate_upload_trace_state_variables; + if (ops->to_get_raw_trace_data == NULL) + ops->to_get_raw_trace_data = delegate_get_raw_trace_data; if (ops->to_supports_btrace == NULL) ops->to_supports_btrace = delegate_supports_btrace; } @@ -1084,5 +1099,6 @@ install_dummy_methods (struct target_ops *ops) ops->to_save_trace_data = tdefault_save_trace_data; ops->to_upload_tracepoints = tdefault_upload_tracepoints; ops->to_upload_trace_state_variables = tdefault_upload_trace_state_variables; + ops->to_get_raw_trace_data = tdefault_get_raw_trace_data; ops->to_supports_btrace = tdefault_supports_btrace; } |