diff options
-rw-r--r-- | gdb/arch-utils.c | 2 | ||||
-rw-r--r-- | gdb/gdbarch.c | 2 | ||||
-rwxr-xr-x | gdb/gdbarch.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 4e55b27..e92004f 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -1542,7 +1542,7 @@ gdbarch_find_by_info (struct gdbarch_info info) any post init values. */ new_gdbarch->dump_tdep = rego->dump_tdep; verify_gdbarch (new_gdbarch); - new_gdbarch->initialized_p = 1; + new_gdbarch->initialized_p = true; if (gdbarch_debug) gdbarch_dump (new_gdbarch, gdb_stdlog); diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index d4ea5d3..800d919 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -30,7 +30,7 @@ struct gdbarch { /* Has this architecture been fully initialized? */ - int initialized_p; + bool initialized_p; /* An obstack bound to the lifetime of the architecture. */ struct obstack *obstack; diff --git a/gdb/gdbarch.py b/gdb/gdbarch.py index bb08081..4a0c522 100755 --- a/gdb/gdbarch.py +++ b/gdb/gdbarch.py @@ -257,7 +257,7 @@ with open("gdbarch.c", "w") as f: print("struct gdbarch", file=f) print("{", file=f) print(" /* Has this architecture been fully initialized? */", file=f) - print(" int initialized_p;", file=f) + print(" bool initialized_p;", file=f) print(file=f) print(" /* An obstack bound to the lifetime of the architecture. */", file=f) print(" struct obstack *obstack;", file=f) |