diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 14:16:24 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:00 -0700 |
commit | dcd6917ff721b568fed57e4f24101fa226288ae1 (patch) | |
tree | 6dc9777c2da1b9db5a820e2cbcb13f7115e17ed7 /gdb/target-delegates.c | |
parent | 22bcceeec6bfd4373fa8d09acff66115800f0455 (diff) | |
download | gdb-dcd6917ff721b568fed57e4f24101fa226288ae1.zip gdb-dcd6917ff721b568fed57e4f24101fa226288ae1.tar.gz gdb-dcd6917ff721b568fed57e4f24101fa226288ae1.tar.bz2 |
convert to_set_permissions
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (update_current_target): Don't inherit or default
to_set_permissions.
* target.h (struct target_ops) <to_set_permissions>: Use
TARGET_DEFAULT_IGNORE.
Diffstat (limited to 'gdb/target-delegates.c')
-rw-r--r-- | gdb/target-delegates.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c index ba89740..0b06593 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -933,6 +933,18 @@ tdefault_get_tib_address (struct target_ops *self, ptid_t arg1, CORE_ADDR *arg2) tcomplain (); } +static void +delegate_set_permissions (struct target_ops *self) +{ + self = self->beneath; + self->to_set_permissions (self); +} + +static void +tdefault_set_permissions (struct target_ops *self) +{ +} + static int delegate_supports_btrace (struct target_ops *self) { @@ -1107,6 +1119,8 @@ install_delegators (struct target_ops *ops) ops->to_set_trace_notes = delegate_set_trace_notes; if (ops->to_get_tib_address == NULL) ops->to_get_tib_address = delegate_get_tib_address; + if (ops->to_set_permissions == NULL) + ops->to_set_permissions = delegate_set_permissions; if (ops->to_supports_btrace == NULL) ops->to_supports_btrace = delegate_supports_btrace; } @@ -1193,5 +1207,6 @@ install_dummy_methods (struct target_ops *ops) ops->to_set_trace_buffer_size = tdefault_set_trace_buffer_size; ops->to_set_trace_notes = tdefault_set_trace_notes; ops->to_get_tib_address = tdefault_get_tib_address; + ops->to_set_permissions = tdefault_set_permissions; ops->to_supports_btrace = tdefault_supports_btrace; } |