gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gdb / displaced-stepping.c
index 3fafeb2bf9e052b01765401a4fa71235d0cf6d79..19df11e24e83aa309a4b6a7b266283300738f1ea 100644 (file)
@@ -187,8 +187,17 @@ multiple_displaced_buffer_manager::finish (gdbarch *arch, thread_info *thread,
   return status;
 }
 
+bool
+default_supports_displaced_step (target_ops *target, thread_info *thread)
+{
+  /* Only check for the presence of `prepare`.  `finish` is required by the
+     gdbarch verification to be provided if `prepare` is.  */
+  gdbarch *arch = thread->arch ();
+  return gdbarch_displaced_step_prepare_p (arch);
+}
+
 displaced_step_prepare_status
-  default_displaced_step_prepare (target_ops *target, thread_info *thread)
+default_displaced_step_prepare (target_ops *target, thread_info *thread)
 {
   gdbarch *arch = thread->arch ();
   return gdbarch_displaced_step_prepare (arch, thread);
This page took 0.023691 seconds and 4 git commands to generate.