aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/target.c b/gdb/target.c
index 3f49079..e41a338 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -3273,6 +3273,18 @@ target_stop (ptid_t ptid)
(*current_target.to_stop) (&current_target, ptid);
}
+void
+target_interrupt (ptid_t ptid)
+{
+ if (!may_stop)
+ {
+ warning (_("May not interrupt or stop the target, ignoring attempt"));
+ return;
+ }
+
+ (*current_target.to_interrupt) (&current_target, ptid);
+}
+
/* See target/target.h. */
void