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.
This commit is contained in:
parent
9a7d8b4812
commit
0de91722c6
4 changed files with 27 additions and 5 deletions
|
@ -1,3 +1,11 @@
|
|||
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.
|
||||
|
||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* target-delegates.c: Rebuild.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -713,7 +713,7 @@ update_current_target (void)
|
|||
/* Do not inherit to_traceframe_info. */
|
||||
/* Do not inherit to_use_agent. */
|
||||
/* Do not inherit to_can_use_agent. */
|
||||
INHERIT (to_augmented_libraries_svr4_read, t);
|
||||
/* Do not inherit to_augmented_libraries_svr4_read. */
|
||||
INHERIT (to_magic, t);
|
||||
INHERIT (to_supports_evaluation_of_breakpoint_conditions, t);
|
||||
INHERIT (to_can_run_breakpoint_commands, t);
|
||||
|
@ -754,9 +754,6 @@ update_current_target (void)
|
|||
de_fault (to_can_run_breakpoint_commands,
|
||||
(int (*) (struct target_ops *))
|
||||
return_zero);
|
||||
de_fault (to_augmented_libraries_svr4_read,
|
||||
(int (*) (struct target_ops *))
|
||||
return_zero);
|
||||
|
||||
#undef de_fault
|
||||
|
||||
|
|
|
@ -1060,7 +1060,8 @@ struct target_ops
|
|||
|
||||
/* Nonzero if TARGET_OBJECT_LIBRARIES_SVR4 may be read with a
|
||||
non-empty annex. */
|
||||
int (*to_augmented_libraries_svr4_read) (struct target_ops *);
|
||||
int (*to_augmented_libraries_svr4_read) (struct target_ops *)
|
||||
TARGET_DEFAULT_RETURN (0);
|
||||
|
||||
/* Those unwinders are tried before any other arch unwinders. Use NULL if
|
||||
it is not used. */
|
||||
|
|
Loading…
Reference in a new issue