gdb: don't require displaced step copy_insn to be implemented in prepare/finish are
[deliverable/binutils-gdb.git] / gdb / infrun.c
index 7a1f9351e833bbc63ba6839d95dfdedc0356230a..90d5b2717e39c8e1c2024b24760f214e8fdbe136 100644 (file)
@@ -1609,10 +1609,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.023552 seconds and 4 git commands to generate.