diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 14:14:58 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:47:57 -0700 |
commit | 91df8d1d35ec381563b978a836b5bd6987d236db (patch) | |
tree | bda60bb25bde900270636b9173adebd8f84f6ba4 /gdb/target-delegates.c | |
parent | 8d5269391fc7dbbd00aa56dcac77bd5a277d2177 (diff) | |
download | gdb-91df8d1d35ec381563b978a836b5bd6987d236db.zip gdb-91df8d1d35ec381563b978a836b5bd6987d236db.tar.gz gdb-91df8d1d35ec381563b978a836b5bd6987d236db.tar.bz2 |
convert to_set_trace_buffer_size
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (update_current_target): Don't initialize
to_set_trace_buffer_size.
* target.h (struct target_ops) <to_set_trace_buffer_size>: 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 6fb242a..d482a72 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -895,6 +895,18 @@ tdefault_set_circular_trace_buffer (struct target_ops *self, int arg1) { } +static void +delegate_set_trace_buffer_size (struct target_ops *self, LONGEST arg1) +{ + self = self->beneath; + self->to_set_trace_buffer_size (self, arg1); +} + +static void +tdefault_set_trace_buffer_size (struct target_ops *self, LONGEST arg1) +{ +} + static int delegate_supports_btrace (struct target_ops *self) { @@ -1063,6 +1075,8 @@ install_delegators (struct target_ops *ops) ops->to_set_disconnected_tracing = delegate_set_disconnected_tracing; if (ops->to_set_circular_trace_buffer == NULL) ops->to_set_circular_trace_buffer = delegate_set_circular_trace_buffer; + if (ops->to_set_trace_buffer_size == NULL) + ops->to_set_trace_buffer_size = delegate_set_trace_buffer_size; if (ops->to_supports_btrace == NULL) ops->to_supports_btrace = delegate_supports_btrace; } @@ -1146,5 +1160,6 @@ install_dummy_methods (struct target_ops *ops) ops->to_get_min_fast_tracepoint_insn_len = tdefault_get_min_fast_tracepoint_insn_len; ops->to_set_disconnected_tracing = tdefault_set_disconnected_tracing; ops->to_set_circular_trace_buffer = tdefault_set_circular_trace_buffer; + ops->to_set_trace_buffer_size = tdefault_set_trace_buffer_size; ops->to_supports_btrace = tdefault_supports_btrace; } |