diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-19 08:17:16 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:35 -0700 |
commit | 8dc292d3217b0cb85ada1b531f9e7e3249b5075e (patch) | |
tree | 956a0c3eeb8be629ce0c4f4a195080871639b9de /gdb/target-delegates.c | |
parent | 58a5184e2aa7a9fcc2a796b44bae124d173cec1a (diff) | |
download | gdb-8dc292d3217b0cb85ada1b531f9e7e3249b5075e.zip gdb-8dc292d3217b0cb85ada1b531f9e7e3249b5075e.tar.gz gdb-8dc292d3217b0cb85ada1b531f9e7e3249b5075e.tar.bz2 |
convert to_disable_btrace
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (target_disable_btrace): Unconditionally delegate.
* target.h (struct target_ops) <to_disable_btrace>: 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 e0c7833..30c2849 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -1301,6 +1301,19 @@ tdefault_supports_btrace (struct target_ops *self) } static void +delegate_disable_btrace (struct target_ops *self, struct btrace_target_info *arg1) +{ + self = self->beneath; + self->to_disable_btrace (self, arg1); +} + +static void +tdefault_disable_btrace (struct target_ops *self, struct btrace_target_info *arg1) +{ + tcomplain (); +} + +static void delegate_save_record (struct target_ops *self, const char *arg1) { self = self->beneath; @@ -1692,6 +1705,8 @@ install_delegators (struct target_ops *ops) ops->to_can_use_agent = delegate_can_use_agent; if (ops->to_supports_btrace == NULL) ops->to_supports_btrace = delegate_supports_btrace; + if (ops->to_disable_btrace == NULL) + ops->to_disable_btrace = delegate_disable_btrace; if (ops->to_save_record == NULL) ops->to_save_record = delegate_save_record; if (ops->to_delete_record == NULL) @@ -1833,6 +1848,7 @@ install_dummy_methods (struct target_ops *ops) ops->to_use_agent = tdefault_use_agent; ops->to_can_use_agent = tdefault_can_use_agent; ops->to_supports_btrace = tdefault_supports_btrace; + ops->to_disable_btrace = tdefault_disable_btrace; ops->to_save_record = tdefault_save_record; ops->to_delete_record = tdefault_delete_record; ops->to_record_is_replaying = tdefault_record_is_replaying; |