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