aboutsummaryrefslogtreecommitdiff
path: root/gdb/target-delegates.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-18 13:54:59 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:47:40 -0700
commitaab1b22d31545efe8dfdd942e2050b3be0c9cf2e (patch)
tree521806700c19a62e45ae26cdc3697c38c99e4562 /gdb/target-delegates.c
parenta73047487749f2c4723f65fe633e24acdee28312 (diff)
downloadgdb-aab1b22d31545efe8dfdd942e2050b3be0c9cf2e.zip
gdb-aab1b22d31545efe8dfdd942e2050b3be0c9cf2e.tar.gz
gdb-aab1b22d31545efe8dfdd942e2050b3be0c9cf2e.tar.bz2
convert to_supports_enable_disable_tracepoint
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (update_current_target): Don't inherit or default to_supports_enable_disable_tracepoint. * target.h (struct target_ops) <to_supports_enable_disable_tracepoint>: Use TARGET_DEFAULT_RETURN.
Diffstat (limited to 'gdb/target-delegates.c')
-rw-r--r--gdb/target-delegates.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c
index 3a322c1..30bea1c 100644
--- a/gdb/target-delegates.c
+++ b/gdb/target-delegates.c
@@ -604,6 +604,19 @@ tdefault_supports_multi_process (struct target_ops *self)
return 0;
}
+static int
+delegate_supports_enable_disable_tracepoint (struct target_ops *self)
+{
+ self = self->beneath;
+ return self->to_supports_enable_disable_tracepoint (self);
+}
+
+static int
+tdefault_supports_enable_disable_tracepoint (struct target_ops *self)
+{
+ return 0;
+}
+
static struct gdbarch *
delegate_thread_architecture (struct target_ops *self, ptid_t arg1)
{
@@ -733,6 +746,8 @@ install_delegators (struct target_ops *ops)
ops->to_execution_direction = delegate_execution_direction;
if (ops->to_supports_multi_process == NULL)
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_thread_architecture == NULL)
ops->to_thread_architecture = delegate_thread_architecture;
if (ops->to_supports_btrace == NULL)
@@ -795,6 +810,7 @@ install_dummy_methods (struct target_ops *ops)
ops->to_can_execute_reverse = tdefault_can_execute_reverse;
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_thread_architecture = default_thread_architecture;
ops->to_supports_btrace = tdefault_supports_btrace;
}