From 30220b46d4cc34f4882525eb92b40725637cbba7 Mon Sep 17 00:00:00 2001 From: Philippe Waroquiers Date: Sun, 27 Nov 2022 17:57:08 +0100 Subject: 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 --- gdb/nto-procfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/nto-procfs.c') diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c index ef9e0f0..4a2968e 100644 --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -706,7 +706,7 @@ nto_procfs_target::attach (const char *args, int from_tty) ptid_t ptid = do_attach (ptid_t (pid)); inf = current_inferior (); inferior_appeared (inf, pid); - inf->attach_flag = 1; + inf->attach_flag = true; if (!inf->target_is_pushed (ops)) inf->push_target (ops); @@ -1286,7 +1286,7 @@ nto_procfs_target::create_inferior (const char *exec_file, inf = current_inferior (); inferior_appeared (inf, pid); - inf->attach_flag = 0; + inf->attach_flag = false; flags = _DEBUG_FLAG_KLC; /* Kill-on-Last-Close flag. */ errn = devctl (ctl_fd, DCMD_PROC_SET_FLAG, &flags, sizeof (flags), 0); -- cgit v1.1