diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-19 08:12:26 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:34 -0700 |
commit | 58a5184e2aa7a9fcc2a796b44bae124d173cec1a (patch) | |
tree | 945205977a7e65cc89202c17df19fc82f50c24c3 /gdb/target-delegates.c | |
parent | 8de71aab66c182ec1f6eb95ed943b64900dd7770 (diff) | |
download | gdb-58a5184e2aa7a9fcc2a796b44bae124d173cec1a.zip gdb-58a5184e2aa7a9fcc2a796b44bae124d173cec1a.tar.gz gdb-58a5184e2aa7a9fcc2a796b44bae124d173cec1a.tar.bz2 |
convert to_search_memory
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (default_search_memory): New function.
(simple_search_memory): Update comment.
(target_search_memory): Unconditionally delegate.
* target.h (struct target_ops) <to_search_memory>: Use
TARGET_DEFAULT_FUNC.
Diffstat (limited to 'gdb/target-delegates.c')
-rw-r--r-- | gdb/target-delegates.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c index cf5e2d3..e0c7833 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -790,6 +790,13 @@ delegate_auxv_parse (struct target_ops *self, gdb_byte **arg1, gdb_byte *arg2, C } static int +delegate_search_memory (struct target_ops *self, CORE_ADDR arg1, ULONGEST arg2, const gdb_byte *arg3, ULONGEST arg4, CORE_ADDR *arg5) +{ + self = self->beneath; + return self->to_search_memory (self, arg1, arg2, arg3, arg4, arg5); +} + +static int delegate_can_execute_reverse (struct target_ops *self) { self = self->beneath; @@ -1603,6 +1610,8 @@ install_delegators (struct target_ops *ops) ops->to_get_ada_task_ptid = delegate_get_ada_task_ptid; if (ops->to_auxv_parse == NULL) ops->to_auxv_parse = delegate_auxv_parse; + if (ops->to_search_memory == NULL) + ops->to_search_memory = delegate_search_memory; if (ops->to_can_execute_reverse == NULL) ops->to_can_execute_reverse = delegate_can_execute_reverse; if (ops->to_execution_direction == NULL) @@ -1783,6 +1792,7 @@ install_dummy_methods (struct target_ops *ops) ops->to_flash_done = tdefault_flash_done; ops->to_get_ada_task_ptid = default_get_ada_task_ptid; ops->to_auxv_parse = default_auxv_parse; + ops->to_search_memory = default_search_memory; 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; |