diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-19 07:56:20 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:33 -0700 |
commit | 8de71aab66c182ec1f6eb95ed943b64900dd7770 (patch) | |
tree | 0725a04afafc4aad7d46640255d8607ef74f8e82 /gdb/target-delegates.c | |
parent | 6b2c5a57e10ca3d9021ef6fe27ba779a06f06717 (diff) | |
download | gdb-8de71aab66c182ec1f6eb95ed943b64900dd7770.zip gdb-8de71aab66c182ec1f6eb95ed943b64900dd7770.tar.gz gdb-8de71aab66c182ec1f6eb95ed943b64900dd7770.tar.bz2 |
convert to_auxv_parse
2014-02-19 Tom Tromey <tromey@redhat.com>
* auxv.c (default_auxv_parse): No longer static.
(target_auxv_parse): Unconditionally delegate.
* auxv.h (default_auxv_parse): Declare.
* target-delegates.c: Rebuild.
* target.c: Include auxv.h.
* target.h (struct target_ops) <to_auxv_parse>: 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 209ecb7..cf5e2d3 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -783,6 +783,13 @@ delegate_get_ada_task_ptid (struct target_ops *self, long arg1, long arg2) } static int +delegate_auxv_parse (struct target_ops *self, gdb_byte **arg1, gdb_byte *arg2, CORE_ADDR *arg3, CORE_ADDR *arg4) +{ + self = self->beneath; + return self->to_auxv_parse (self, arg1, arg2, arg3, arg4); +} + +static int delegate_can_execute_reverse (struct target_ops *self) { self = self->beneath; @@ -1594,6 +1601,8 @@ install_delegators (struct target_ops *ops) ops->to_flash_done = delegate_flash_done; if (ops->to_get_ada_task_ptid == NULL) 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_can_execute_reverse == NULL) ops->to_can_execute_reverse = delegate_can_execute_reverse; if (ops->to_execution_direction == NULL) @@ -1773,6 +1782,7 @@ install_dummy_methods (struct target_ops *ops) ops->to_flash_erase = tdefault_flash_erase; 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_can_execute_reverse = tdefault_can_execute_reverse; ops->to_execution_direction = default_execution_direction; ops->to_supports_multi_process = tdefault_supports_multi_process; |