X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Finfrun.c;fp=gdb%2Finfrun.c;h=90d5b2717e39c8e1c2024b24760f214e8fdbe136;hb=5514706f739978e0897d01ec9fa25fa61861c263;hp=7a1f9351e833bbc63ba6839d95dfdedc0356230a;hpb=348a832d84a566eb9e8a8bed87c274f7b0e2579f;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/infrun.c b/gdb/infrun.c index 7a1f9351e8..90d5b2717e 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -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