[PATCH v2 1/2] Use boolean constants in ft32-tdep.c

Tom Tromey
2026-03-09T13:57:06Z

A couple of spots in ft32-tdep.c are using integer literals where
booleans are more appropriate.
---
gdb/ft32-tdep.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/ft32-tdep.c b/gdb/ft32-tdep.c
index fc796f44ae1..5a1f3315c7f 100644
--- a/gdb/ft32-tdep.c
+++ b/gdb/ft32-tdep.c
@@ -206,7 +206,7 @@ ft32_analyze_prologue (CORE_ADDR start_addr, CORE_ADDR end_addr,
if (start_addr >= end_addr)
return end_addr;

- cache->established = 0;
+ cache->established = false;
for (next_addr = start_addr; next_addr < end_addr; next_addr += isize)
{
inst = ft32_fetch_instruction (next_addr, &isize, byte_order);
@@ -251,7 +251,7 @@ ft32_analyze_prologue (CORE_ADDR start_addr, CORE_ADDR end_addr,
inst = ft32_fetch_instruction (next_addr, &isize, byte_order);
if (FT32_IS_LINK (inst))
{
- cache->established = 1;
+ cache->established = true;
for (regnum = FT32_R0_REGNUM; regnum < FT32_PC_REGNUM; regnum++)
{
if (cache->saved_regs[regnum] != REG_UNAVAIL)

--
2.49.0