aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-18 14:35:15 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:48:11 -0700
commit423a48075e748691f7fa83dbae404da3e4edc914 (patch)
tree7b2c54dd9658c59dc407f565d2a5c390c75b5cca /gdb/target.c
parent6c7e5e5cdc78f2930423b87d76006e067749e6ba (diff)
downloadgdb-423a48075e748691f7fa83dbae404da3e4edc914.zip
gdb-423a48075e748691f7fa83dbae404da3e4edc914.tar.gz
gdb-423a48075e748691f7fa83dbae404da3e4edc914.tar.bz2
convert to_kill
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (target_kill): Unconditionally delegate. * target.h (struct target_ops) <to_kill>: Use TARGET_DEFAULT_NORETURN.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/gdb/target.c b/gdb/target.c
index 8306906..3d27eda 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -452,19 +452,10 @@ target_ignore (void)
void
target_kill (void)
{
- struct target_ops *t;
-
- for (t = current_target.beneath; t != NULL; t = t->beneath)
- if (t->to_kill != NULL)
- {
- if (targetdebug)
- fprintf_unfiltered (gdb_stdlog, "target_kill ()\n");
-
- t->to_kill (t);
- return;
- }
+ if (targetdebug)
+ fprintf_unfiltered (gdb_stdlog, "target_kill ()\n");
- noprocess ();
+ current_target.to_kill (&current_target);
}
void