aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-18 14:42:54 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:48:14 -0700
commit7d4f8efaf6b0c9dea516097442917deb89414090 (patch)
treeeebfbd3044046bd36f1a01931a7ebf8bef8718d1 /gdb/target.c
parent035cad7f2e550abdaaa8b556143b351822f2940e (diff)
downloadgdb-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.c')
-rw-r--r--gdb/target.c32
1 files changed, 12 insertions, 20 deletions
diff --git a/gdb/target.c b/gdb/target.c
index b04e8f2..0519900 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -2601,31 +2601,23 @@ target_pass_signals (int numsigs, unsigned char *pass_signals)
void
target_program_signals (int numsigs, unsigned char *program_signals)
{
- struct target_ops *t;
-
- for (t = current_target.beneath; t != NULL; t = t->beneath)
+ if (targetdebug)
{
- if (t->to_program_signals != NULL)
- {
- if (targetdebug)
- {
- int i;
-
- fprintf_unfiltered (gdb_stdlog, "target_program_signals (%d, {",
- numsigs);
+ int i;
- for (i = 0; i < numsigs; i++)
- if (program_signals[i])
- fprintf_unfiltered (gdb_stdlog, " %s",
- gdb_signal_to_name (i));
+ fprintf_unfiltered (gdb_stdlog, "target_program_signals (%d, {",
+ numsigs);
- fprintf_unfiltered (gdb_stdlog, " })\n");
- }
+ for (i = 0; i < numsigs; i++)
+ if (program_signals[i])
+ fprintf_unfiltered (gdb_stdlog, " %s",
+ gdb_signal_to_name (i));
- (*t->to_program_signals) (t, numsigs, program_signals);
- return;
- }
+ fprintf_unfiltered (gdb_stdlog, " })\n");
}
+
+ (*current_target.to_program_signals) (&current_target,
+ numsigs, program_signals);
}
static int