aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-18 14:42:10 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:48:13 -0700
commit035cad7f2e550abdaaa8b556143b351822f2940e (patch)
tree5dcd14d85c868f4d0e747786c637b64544a88abf /gdb/target.c
parent8d65703517069975d781d7957d90a9de3ce94e5d (diff)
downloadgdb-035cad7f2e550abdaaa8b556143b351822f2940e.zip
gdb-035cad7f2e550abdaaa8b556143b351822f2940e.tar.gz
gdb-035cad7f2e550abdaaa8b556143b351822f2940e.tar.bz2
convert to_pass_signals
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (target_pass_signals): Unconditionally delegate. * target.h (struct target_ops) <to_pass_signals>: Use TARGET_DEFAULT_IGNORE.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c31
1 files changed, 11 insertions, 20 deletions
diff --git a/gdb/target.c b/gdb/target.c
index 13ec67d..b04e8f2 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -2580,31 +2580,22 @@ target_resume (ptid_t ptid, int step, enum gdb_signal signal)
void
target_pass_signals (int numsigs, unsigned char *pass_signals)
{
- struct target_ops *t;
-
- for (t = current_target.beneath; t != NULL; t = t->beneath)
+ if (targetdebug)
{
- if (t->to_pass_signals != NULL)
- {
- if (targetdebug)
- {
- int i;
-
- fprintf_unfiltered (gdb_stdlog, "target_pass_signals (%d, {",
- numsigs);
+ int i;
- for (i = 0; i < numsigs; i++)
- if (pass_signals[i])
- fprintf_unfiltered (gdb_stdlog, " %s",
- gdb_signal_to_name (i));
+ fprintf_unfiltered (gdb_stdlog, "target_pass_signals (%d, {",
+ numsigs);
- fprintf_unfiltered (gdb_stdlog, " })\n");
- }
+ for (i = 0; i < numsigs; i++)
+ if (pass_signals[i])
+ fprintf_unfiltered (gdb_stdlog, " %s",
+ gdb_signal_to_name (i));
- (*t->to_pass_signals) (t, numsigs, pass_signals);
- return;
- }
+ fprintf_unfiltered (gdb_stdlog, " })\n");
}
+
+ (*current_target.to_pass_signals) (&current_target, numsigs, pass_signals);
}
void