From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.baldwin.cx (bigwig.baldwin.cx [IPv6:2607:f138:0:13::2]) by sourceware.org (Postfix) with ESMTPS id 9EFC23858CDB for ; Tue, 28 Feb 2023 18:19:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9EFC23858CDB Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=FreeBSD.org Received: from gimli.baldwin.net (c-98-35-126-114.hsd1.ca.comcast.net [98.35.126.114]) by mail.baldwin.cx (Postfix) with ESMTPSA id 0D3A31A84E29 for ; Tue, 28 Feb 2023 13:18:54 -0500 (EST) From: John Baldwin To: gdb-patches@sourceware.org Subject: [PATCH 1/9] fbsd-nat: Add missing spaces. Date: Tue, 28 Feb 2023 10:18:37 -0800 Message-Id: <20230228181845.99936-2-jhb@FreeBSD.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230228181845.99936-1-jhb@FreeBSD.org> References: <20230228181845.99936-1-jhb@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.4 (mail.baldwin.cx [0.0.0.0]); Tue, 28 Feb 2023 13:18:55 -0500 (EST) X-Virus-Scanned: clamav-milter 0.103.1 at mail.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00,FORGED_SPF_HELO,GIT_PATCH_0,KAM_DMARC_STATUS,KHOP_HELO_FCRDNS,SPF_HELO_PASS,SPF_SOFTFAIL,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: No functional change, just style fixes. --- gdb/fbsd-nat.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index 27d2fe45092..4e48bfa1590 100644 --- a/gdb/fbsd-nat.c +++ b/gdb/fbsd-nat.c @@ -852,23 +852,23 @@ fbsd_enable_proc_events (pid_t pid) #ifdef PT_GET_EVENT_MASK int events; - if (ptrace (PT_GET_EVENT_MASK, pid, (PTRACE_TYPE_ARG3)&events, + if (ptrace (PT_GET_EVENT_MASK, pid, (PTRACE_TYPE_ARG3) &events, sizeof (events)) == -1) perror_with_name (("ptrace (PT_GET_EVENT_MASK)")); events |= PTRACE_FORK | PTRACE_LWP; #ifdef PTRACE_VFORK events |= PTRACE_VFORK; #endif - if (ptrace (PT_SET_EVENT_MASK, pid, (PTRACE_TYPE_ARG3)&events, + if (ptrace (PT_SET_EVENT_MASK, pid, (PTRACE_TYPE_ARG3) &events, sizeof (events)) == -1) perror_with_name (("ptrace (PT_SET_EVENT_MASK)")); #else #ifdef TDP_RFPPWAIT - if (ptrace (PT_FOLLOW_FORK, pid, (PTRACE_TYPE_ARG3)0, 1) == -1) + if (ptrace (PT_FOLLOW_FORK, pid, (PTRACE_TYPE_ARG3) 0, 1) == -1) perror_with_name (("ptrace (PT_FOLLOW_FORK)")); #endif #ifdef PT_LWP_EVENTS - if (ptrace (PT_LWP_EVENTS, pid, (PTRACE_TYPE_ARG3)0, 1) == -1) + if (ptrace (PT_LWP_EVENTS, pid, (PTRACE_TYPE_ARG3) 0, 1) == -1) perror_with_name (("ptrace (PT_LWP_EVENTS)")); #endif #endif @@ -1369,7 +1369,7 @@ fbsd_nat_target::wait_1 (ptid_t ptid, struct target_waitstatus *ourstatus, gdb_assert (pid == child); - if (ptrace (PT_LWPINFO, child, (caddr_t)&pl, sizeof pl) == -1) + if (ptrace (PT_LWPINFO, child, (caddr_t) &pl, sizeof pl) == -1) perror_with_name (("ptrace (PT_LWPINFO)")); gdb_assert (pl.pl_flags & PL_FLAG_CHILD); @@ -1489,7 +1489,7 @@ fbsd_nat_target::wait (ptid_t ptid, struct target_waitstatus *ourstatus, event loop keeps polling until no event is returned. */ if (is_async_p () && ((ourstatus->kind () != TARGET_WAITKIND_IGNORE - && ourstatus->kind() != TARGET_WAITKIND_NO_RESUMED) + && ourstatus->kind () != TARGET_WAITKIND_NO_RESUMED) || ptid != minus_one_ptid)) async_file_mark (); @@ -1607,7 +1607,7 @@ fbsd_nat_target::follow_fork (inferior *child_inf, ptid_t child_ptid, /* Breakpoints have already been detached from the child by infrun.c. */ - if (ptrace (PT_DETACH, child_pid, (PTRACE_TYPE_ARG3)1, 0) == -1) + if (ptrace (PT_DETACH, child_pid, (PTRACE_TYPE_ARG3) 1, 0) == -1) perror_with_name (("ptrace (PT_DETACH)")); #ifndef PTRACE_VFORK @@ -1740,7 +1740,7 @@ fbsd_nat_target::fetch_register_set (struct regcache *regcache, int regnum, if (regnum == -1 || (regnum >= regbase && regcache_map_supplies (map, regnum - regbase, - regcache->arch(), size))) + regcache->arch (), size))) { if (ptrace (fetch_op, pid, (PTRACE_TYPE_ARG3) regs, 0) == -1) perror_with_name (_("Couldn't get registers")); @@ -1765,7 +1765,7 @@ fbsd_nat_target::store_register_set (struct regcache *regcache, int regnum, if (regnum == -1 || (regnum >= regbase && regcache_map_supplies (map, regnum - regbase, - regcache->arch(), size))) + regcache->arch (), size))) { if (ptrace (fetch_op, pid, (PTRACE_TYPE_ARG3) regs, 0) == -1) perror_with_name (_("Couldn't get registers")); @@ -1807,7 +1807,7 @@ fbsd_nat_target::fetch_regset (struct regcache *regcache, int regnum, int note, if (regnum == -1 || (regnum >= regbase && regcache_map_supplies (map, regnum - regbase, - regcache->arch(), size))) + regcache->arch (), size))) { struct iovec iov; @@ -1833,7 +1833,7 @@ fbsd_nat_target::store_regset (struct regcache *regcache, int regnum, int note, if (regnum == -1 || (regnum >= regbase && regcache_map_supplies (map, regnum - regbase, - regcache->arch(), size))) + regcache->arch (), size))) { struct iovec iov; -- 2.38.1