From d6522a229d3baf2659c63a65b60947dff58ea200 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 18 Dec 2013 14:17:35 -0700 Subject: convert to_static_tracepoint_markers_by_strid Note that this patch reformats the to_static_tracepoint_markers_by_strid field declaration in struct target_ops. This was needed because make-target-delegates requires the opening paren for the parameters to be on the same line as the method name, and I didn't see an easy way to fix this. 2014-02-19 Tom Tromey * target-delegates.c: Rebuild. * target.c (update_current_target): Don't inherit or default to_static_tracepoint_markers_by_strid. * target.h (struct target_ops) : Use TARGET_DEFAULT_NORETURN. --- gdb/target-delegates.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'gdb/target-delegates.c') diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c index 2aea888..b0ada5c 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -958,6 +958,19 @@ tdefault_static_tracepoint_marker_at (struct target_ops *self, CORE_ADDR arg1, s return 0; } +static VEC(static_tracepoint_marker_p) * +delegate_static_tracepoint_markers_by_strid (struct target_ops *self, const char *arg1) +{ + self = self->beneath; + return self->to_static_tracepoint_markers_by_strid (self, arg1); +} + +static VEC(static_tracepoint_marker_p) * +tdefault_static_tracepoint_markers_by_strid (struct target_ops *self, const char *arg1) +{ + tcomplain (); +} + static int delegate_supports_btrace (struct target_ops *self) { @@ -1136,6 +1149,8 @@ install_delegators (struct target_ops *ops) ops->to_set_permissions = delegate_set_permissions; if (ops->to_static_tracepoint_marker_at == NULL) ops->to_static_tracepoint_marker_at = delegate_static_tracepoint_marker_at; + if (ops->to_static_tracepoint_markers_by_strid == NULL) + ops->to_static_tracepoint_markers_by_strid = delegate_static_tracepoint_markers_by_strid; if (ops->to_supports_btrace == NULL) ops->to_supports_btrace = delegate_supports_btrace; } @@ -1224,5 +1239,6 @@ install_dummy_methods (struct target_ops *ops) ops->to_get_tib_address = tdefault_get_tib_address; ops->to_set_permissions = tdefault_set_permissions; ops->to_static_tracepoint_marker_at = tdefault_static_tracepoint_marker_at; + ops->to_static_tracepoint_markers_by_strid = tdefault_static_tracepoint_markers_by_strid; ops->to_supports_btrace = tdefault_supports_btrace; } -- cgit v1.1