From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 96820384D16E for ; Mon, 20 Mar 2023 17:47:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 96820384D16E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca Received: from [172.16.0.192] (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 4C9171E110; Mon, 20 Mar 2023 13:47:22 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1679334442; bh=QH4WbYWvdZj6+dqjFnzTMt1Dpsj4TwYPamNo7qmDv3I=; h=Date:Subject:To:References:From:In-Reply-To:From; b=Tyt51DxZZoslrDu6wrI7yCEEI9j4gJD4uH3ZGAwuIrquZVV7ajVkO1x7NTIXkiFHL 5e4ZuQJxoDA34/6aRXVoKQi3VVzKdQnMgORf9KHLPo8VrIc/VVF/6Idf8ldVWT75Zq Wxy/WH7S5n09KElmVXWXL+7OvRCqfqP1CSOpbKaA= Message-ID: Date: Mon, 20 Mar 2023 13:47:22 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 3/9] fbsd-nat: Use correct constant for target_waitstatus::sig. Content-Language: fr To: John Baldwin , gdb-patches@sourceware.org References: <20230228181845.99936-1-jhb@FreeBSD.org> <20230228181845.99936-4-jhb@FreeBSD.org> From: Simon Marchi In-Reply-To: <20230228181845.99936-4-jhb@FreeBSD.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,NICE_REPLY_A,SPF_HELO_PASS,SPF_PASS,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: On 2/28/23 13:18, John Baldwin wrote: > Use GDB_SIGNAL_TRAP instead of SIGTRAP. This is a no-op since the > value of SIGTRAP on FreeBSD matches the value of GDB_SIGNAL_TRAP, but > it is more correct. > --- > gdb/fbsd-nat.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c > index 2f5b512fb33..04d67fc5278 100644 > --- a/gdb/fbsd-nat.c > +++ b/gdb/fbsd-nat.c > @@ -1439,7 +1439,7 @@ fbsd_nat_target::wait_1 (ptid_t ptid, struct target_waitstatus *ourstatus, > SIGTRAP, so only treat SIGTRAP events as system call > entry/exit events. */ > if (pl.pl_flags & (PL_FLAG_SCE | PL_FLAG_SCX) > - && ourstatus->sig () == SIGTRAP) > + && ourstatus->sig () == GDB_SIGNAL_TRAP) > { > #ifdef HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE > if (catch_syscall_enabled ()) > -- > 2.38.1 > Approved-By: Simon Marchi Simon