diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 14:08:14 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:47:51 -0700 |
commit | afc94e66d421055b1fc13995876c0880c8f626c7 (patch) | |
tree | c026f2d2facd8a545aebc67412784baaa3969da5 /gdb/target-delegates.c | |
parent | e51c07ea4ab456d2a46fb48256007518722d21e9 (diff) | |
download | gdb-afc94e66d421055b1fc13995876c0880c8f626c7.zip gdb-afc94e66d421055b1fc13995876c0880c8f626c7.tar.gz gdb-afc94e66d421055b1fc13995876c0880c8f626c7.tar.bz2 |
convert to_trace_find
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (update_current_target): Don't inherit or default
to_trace_find.
* target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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 62fda4c..2fd51e2 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -781,6 +781,19 @@ tdefault_trace_stop (struct target_ops *self) } static int +delegate_trace_find (struct target_ops *self, enum trace_find_type arg1, int arg2, CORE_ADDR arg3, CORE_ADDR arg4, int *arg5) +{ + self = self->beneath; + return self->to_trace_find (self, arg1, arg2, arg3, arg4, arg5); +} + +static int +tdefault_trace_find (struct target_ops *self, enum trace_find_type arg1, int arg2, CORE_ADDR arg3, CORE_ADDR arg4, int *arg5) +{ + return -1; +} + +static int delegate_supports_btrace (struct target_ops *self) { self = self->beneath; @@ -930,6 +943,8 @@ install_delegators (struct target_ops *ops) ops->to_get_tracepoint_status = delegate_get_tracepoint_status; if (ops->to_trace_stop == NULL) ops->to_trace_stop = delegate_trace_stop; + if (ops->to_trace_find == NULL) + ops->to_trace_find = delegate_trace_find; if (ops->to_supports_btrace == NULL) ops->to_supports_btrace = delegate_supports_btrace; } @@ -1004,5 +1019,6 @@ install_dummy_methods (struct target_ops *ops) ops->to_get_trace_status = tdefault_get_trace_status; ops->to_get_tracepoint_status = tdefault_get_tracepoint_status; ops->to_trace_stop = tdefault_trace_stop; + ops->to_trace_find = tdefault_trace_find; ops->to_supports_btrace = tdefault_supports_btrace; } |