diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2020-10-20 17:39:47 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-10-20 17:39:48 -0400 |
commit | 07fbbd013824ba9fa0bdd466f526234dc4fcca18 (patch) | |
tree | 534b050d5b8464eb84b0c421201a95d23ebbd84e /gdb/rs6000-tdep.c | |
parent | 3953519365a38f7cb31c00b150bd8e56caf8b314 (diff) | |
download | gdb-07fbbd013824ba9fa0bdd466f526234dc4fcca18.zip gdb-07fbbd013824ba9fa0bdd466f526234dc4fcca18.tar.gz gdb-07fbbd013824ba9fa0bdd466f526234dc4fcca18.tar.bz2 |
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
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r-- | gdb/rs6000-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 7e65151..d4d7781 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -994,11 +994,11 @@ ppc_displaced_step_fixup (struct gdbarch *gdbarch, /* Always use hardware single-stepping to execute the displaced instruction. */ -static int +static bool ppc_displaced_step_hw_singlestep (struct gdbarch *gdbarch, struct displaced_step_closure *closure) { - return 1; + return true; } /* Checks for an atomic sequence of instructions beginning with a |