aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2020-07-17 09:20:33 -0600
committerTom Tromey <tromey@adacore.com>2020-07-17 09:21:12 -0600
commitf80c8ec423f006eff316d3df633f95439d7dbc7a (patch)
tree9ea938bdd1d2746f9bd6b0b2d9c0b73c766d6cdd /gdb
parent90c3ec2d210a76e88e9fe7c62af9806650a5a9c0 (diff)
downloadfsf-binutils-gdb-f80c8ec423f006eff316d3df633f95439d7dbc7a.zip
fsf-binutils-gdb-f80c8ec423f006eff316d3df633f95439d7dbc7a.tar.gz
fsf-binutils-gdb-f80c8ec423f006eff316d3df633f95439d7dbc7a.tar.bz2
Use boolean literals in linux-nat.c
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".
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/linux-nat.c8
2 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bafb68e..1b5bc8b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+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.
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index fde360f..03d52ba 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -4174,7 +4174,7 @@ linux_nat_target::can_async_p ()
bool
linux_nat_target::supports_non_stop ()
{
- return 1;
+ return true;
}
/* to_always_non_stop_p implementation. */
@@ -4182,7 +4182,7 @@ linux_nat_target::supports_non_stop ()
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
@@ -4200,9 +4200,9 @@ bool
linux_nat_target::supports_disable_randomization ()
{
#ifdef HAVE_PERSONALITY
- return 1;
+ return true;
#else
- return 0;
+ return false;
#endif
}