From 07fbbd013824ba9fa0bdd466f526234dc4fcca18 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 20 Oct 2020 17:39:47 -0400 Subject: gdb: make gdbarch_displaced_step_hw_singlestep return bool Replace the int-used-as-a-bool with a bool. gdb/ChangeLog: * gdbarch.sh (displaced_step_hw_singlestep): Return bool. * gdbarch.c: Re-generate. * gdbarch.h: Re-generate. * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return bool. * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep): Likewise. * arch-utils.h (default_displaced_step_hw_singlestep): Likewise. * arch-utils.c (default_displaced_step_hw_singlestep): Likewise. * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise. * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise. Change-Id: I76a78366dc5c0afb03f8f4bddf9f4e8d68fe3114 --- gdb/gdbarch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/gdbarch.c') diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 664aa9cdbff..3a55820f72c 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -3986,7 +3986,7 @@ set_gdbarch_displaced_step_copy_insn (struct gdbarch *gdbarch, gdbarch->displaced_step_copy_insn = displaced_step_copy_insn; } -int +bool gdbarch_displaced_step_hw_singlestep (struct gdbarch *gdbarch, struct displaced_step_closure *closure) { gdb_assert (gdbarch != NULL); -- cgit v1.2.1