Provide default target methods for record targets that are likely to be shared
[deliverable/binutils-gdb.git] / gdb / target.c
index efd5f630d536a4a80777a9df34d41864075636f9..e41f0741f85e3ac1954299d46a8c4c7554e97351 100644 (file)
@@ -4243,6 +4243,23 @@ target_read_btrace (struct btrace_target_info *btinfo,
 
 /* See target.h.  */
 
+void
+target_stop_recording (void)
+{
+  struct target_ops *t;
+
+  for (t = current_target.beneath; t != NULL; t = t->beneath)
+    if (t->to_stop_recording != NULL)
+      {
+       t->to_stop_recording ();
+       return;
+      }
+
+  /* This is optional.  */
+}
+
+/* See target.h.  */
+
 void
 target_info_record (void)
 {
This page took 0.029598 seconds and 4 git commands to generate.