diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 13:56:04 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:47:41 -0700 |
commit | 9409d39e8776a1f556cba720b7fcb0ea60c22cd4 (patch) | |
tree | bb701a08c47f4347725de8eb822e733dbd89de98 /gdb/target-delegates.c | |
parent | aab1b22d31545efe8dfdd942e2050b3be0c9cf2e (diff) | |
download | gdb-9409d39e8776a1f556cba720b7fcb0ea60c22cd4.zip gdb-9409d39e8776a1f556cba720b7fcb0ea60c22cd4.tar.gz gdb-9409d39e8776a1f556cba720b7fcb0ea60c22cd4.tar.bz2 |
convert to_supports_string_tracing
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (update_current_target): Don't inherit or default
to_supports_string_tracing.
* target.h (struct target_ops) <to_supports_string_tracing>: 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 30bea1c..275ce58 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -617,6 +617,19 @@ tdefault_supports_enable_disable_tracepoint (struct target_ops *self) return 0; } +static int +delegate_supports_string_tracing (struct target_ops *self) +{ + self = self->beneath; + return self->to_supports_string_tracing (self); +} + +static int +tdefault_supports_string_tracing (struct target_ops *self) +{ + return 0; +} + static struct gdbarch * delegate_thread_architecture (struct target_ops *self, ptid_t arg1) { @@ -748,6 +761,8 @@ install_delegators (struct target_ops *ops) ops->to_supports_multi_process = delegate_supports_multi_process; if (ops->to_supports_enable_disable_tracepoint == NULL) ops->to_supports_enable_disable_tracepoint = delegate_supports_enable_disable_tracepoint; + if (ops->to_supports_string_tracing == NULL) + ops->to_supports_string_tracing = delegate_supports_string_tracing; if (ops->to_thread_architecture == NULL) ops->to_thread_architecture = delegate_thread_architecture; if (ops->to_supports_btrace == NULL) @@ -811,6 +826,7 @@ install_dummy_methods (struct target_ops *ops) ops->to_execution_direction = default_execution_direction; ops->to_supports_multi_process = tdefault_supports_multi_process; ops->to_supports_enable_disable_tracepoint = tdefault_supports_enable_disable_tracepoint; + ops->to_supports_string_tracing = tdefault_supports_string_tracing; ops->to_thread_architecture = default_thread_architecture; ops->to_supports_btrace = tdefault_supports_btrace; } |