summaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>2022-11-27 17:57:08 +0100
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>2022-11-27 21:06:18 +0100
commit30220b46d4cc34f4882525eb92b40725637cbba7 (patch)
treea26162c9325c20f2db32e3f233c4d8454cb698e3 /gdb/procfs.c
parent4c35c4c6a779c79e456b7a5311f74aafc9026bd5 (diff)
downloadbinutils-gdb-30220b46d4cc34f4882525eb92b40725637cbba7.tar.gz
Use false/true for some inferior class members instead of 0/1
Some class members were changed to bool, but there was still some assignments or comparisons using 0/1. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r--gdb/procfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c
index 141db3dd793..ac3d60ebf1c 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -1849,7 +1849,7 @@ do_attach (ptid_t ptid)
inf = current_inferior ();
inferior_appeared (inf, pi->pid);
/* Let GDB know that the inferior was attached. */
- inf->attach_flag = 1;
+ inf->attach_flag = true;
/* Create a procinfo for the current lwp. */
lwpid = proc_get_current_thread (pi);