diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 14:19:33 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:04 -0700 |
commit | 0de91722c6021504af3a1cc06c59d1961b2cc585 (patch) | |
tree | c7e2bfad0ac2fbecc3d594a2ffa56668edf615f8 /gdb/target-delegates.c | |
parent | 9a7d8b4812687f9fed3e495024b166f04af44def (diff) | |
download | gdb-0de91722c6021504af3a1cc06c59d1961b2cc585.zip gdb-0de91722c6021504af3a1cc06c59d1961b2cc585.tar.gz gdb-0de91722c6021504af3a1cc06c59d1961b2cc585.tar.bz2 |
convert to_augmented_libraries_svr4_read
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (update_current_target): Don't inherit or default
to_augmented_libraries_svr4_read.
* target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
Use TARGET_DEFAULT_RETURN.
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 8e11dfd..0ddfbc1 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -1023,6 +1023,19 @@ tdefault_supports_btrace (struct target_ops *self) return 0; } +static int +delegate_augmented_libraries_svr4_read (struct target_ops *self) +{ + self = self->beneath; + return self->to_augmented_libraries_svr4_read (self); +} + +static int +tdefault_augmented_libraries_svr4_read (struct target_ops *self) +{ + return 0; +} + static void install_delegators (struct target_ops *ops) { @@ -1198,6 +1211,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_augmented_libraries_svr4_read == NULL) + ops->to_augmented_libraries_svr4_read = delegate_augmented_libraries_svr4_read; } static void @@ -1289,4 +1304,5 @@ 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_augmented_libraries_svr4_read = tdefault_augmented_libraries_svr4_read; } |