gdb: don't require displaced step copy_insn to be implemented in prepare/finish are
[deliverable/binutils-gdb.git] / gdb / infrun.c
index 9366cbe25ff838f1ed64051967cdfc26a83eac8c..0e8119cfd8084ab6e400ff5ac5b21c4d7919cfa8 100644 (file)
@@ -1578,10 +1578,9 @@ show_can_use_displaced_stepping (struct ui_file *file, int from_tty,
 static bool
 gdbarch_supports_displaced_stepping (gdbarch *arch)
 {
-  /* Only check for the presence of copy_insn.  Other required methods
-     are checked by the gdbarch validation to be provided if copy_insn is
-     provided.  */
-  return gdbarch_displaced_step_copy_insn_p (arch);
+  /* Only check for the presence of `prepare`.  `finish` is required by the
+     gdbarch verification to be provided if `prepare` is provided.  */
+  return gdbarch_displaced_step_prepare_p (arch);
 }
 
 /* Return non-zero if displaced stepping can/should be used to step
This page took 0.024222 seconds and 4 git commands to generate.