diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 14:42:54 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:14 -0700 |
commit | 7d4f8efaf6b0c9dea516097442917deb89414090 (patch) | |
tree | eebfbd3044046bd36f1a01931a7ebf8bef8718d1 /gdb/target-delegates.c | |
parent | 035cad7f2e550abdaaa8b556143b351822f2940e (diff) | |
download | gdb-7d4f8efaf6b0c9dea516097442917deb89414090.zip gdb-7d4f8efaf6b0c9dea516097442917deb89414090.tar.gz gdb-7d4f8efaf6b0c9dea516097442917deb89414090.tar.bz2 |
convert to_program_signals
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (target_program_signals): Unconditionally delegate.
* target.h (struct target_ops) <to_program_signals>: 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 22cb360..d3b8da7 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -529,6 +529,18 @@ tdefault_pass_signals (struct target_ops *self, int arg1, unsigned char *arg2) { } +static void +delegate_program_signals (struct target_ops *self, int arg1, unsigned char *arg2) +{ + self = self->beneath; + self->to_program_signals (self, arg1, arg2); +} + +static void +tdefault_program_signals (struct target_ops *self, int arg1, unsigned char *arg2) +{ +} + static char * delegate_extra_thread_info (struct target_ops *self, struct thread_info *arg1) { @@ -1270,6 +1282,8 @@ install_delegators (struct target_ops *ops) ops->to_mourn_inferior = delegate_mourn_inferior; if (ops->to_pass_signals == NULL) ops->to_pass_signals = delegate_pass_signals; + if (ops->to_program_signals == NULL) + ops->to_program_signals = delegate_program_signals; if (ops->to_extra_thread_info == NULL) ops->to_extra_thread_info = delegate_extra_thread_info; if (ops->to_thread_name == NULL) @@ -1428,6 +1442,7 @@ install_dummy_methods (struct target_ops *ops) ops->to_has_exited = tdefault_has_exited; ops->to_mourn_inferior = default_mourn_inferior; ops->to_pass_signals = tdefault_pass_signals; + ops->to_program_signals = tdefault_program_signals; ops->to_extra_thread_info = tdefault_extra_thread_info; ops->to_thread_name = tdefault_thread_name; ops->to_stop = tdefault_stop; |