I noticed a couple of spots in linux-nat.c that use 0/1 where boolean
literals would be more idiomatic. This patch makes this change.
gdb/ChangeLog
2020-07-17 Tom Tromey <tromey@adacore.com>
* linux-nat.c (linux_nat_target::supports_non_stop)
(linux_nat_target::always_non_stop_p): Use "true".
(linux_nat_target::supports_disable_randomization): Use "true" and
"false".
+2020-07-17 Tom Tromey <tromey@adacore.com>
+
+ * linux-nat.c (linux_nat_target::supports_non_stop)
+ (linux_nat_target::always_non_stop_p): Use "true".
+ (linux_nat_target::supports_disable_randomization): Use "true" and
+ "false".
+
2020-07-16 Caroline Tice <cmtice@google.com>
* dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
bool
linux_nat_target::supports_non_stop ()
{
- return 1;
+ return true;
}
/* to_always_non_stop_p implementation. */
bool
linux_nat_target::always_non_stop_p ()
{
- return 1;
+ return true;
}
/* True if we want to support multi-process. To be removed when GDB
linux_nat_target::supports_disable_randomization ()
{
#ifdef HAVE_PERSONALITY
- return 1;
+ return true;
#else
- return 0;
+ return false;
#endif
}