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 BF25D3857C5A for ; Tue, 28 Jul 2020 16:22:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BF25D3857C5A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark@simark.ca Received: from [10.0.0.11] (173-246-6-90.qc.cable.ebox.net [173.246.6.90]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 5ACFA1ED0B; Tue, 28 Jul 2020 12:22:02 -0400 (EDT) Subject: Re: [PATCH v3] Implement xfer_partial TARGET_OBJECT_SIGNAL_INFO for NetBSD To: Kamil Rytarowski , gdb-patches@sourceware.org, jhb@FreeBSD.org References: <20200728150418.19720-1-n54@gmx.com> <20200728155844.6609-1-n54@gmx.com> From: Simon Marchi Message-ID: <01964ed7-b2cd-5e0c-0630-b2324503d694@simark.ca> Date: Tue, 28 Jul 2020 12:21:56 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200728155844.6609-1-n54@gmx.com> Content-Type: text/plain; charset=utf-8 Content-Language: fr Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2020 16:22:03 -0000 On 2020-07-28 11:58 a.m., Kamil Rytarowski wrote: > NetBSD implements reading and overwriting siginfo_t received by the > tracee. With TARGET_OBJECT_SIGNAL_INFO signal information can be > examined and modified through the special variable $_siginfo. > > Implement the "get_siginfo_type" gdbarch method for NetBSD architectures. > > As with Linux architectures, cache the created type in the gdbarch when it > is first created. Currently NetBSD uses an identical siginfo type on > all architectures, so there is no support for architecture-specific fields. > > gdb/ChangeLog: > > * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration. > * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function. > * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data) > (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data) > (nbsd_get_siginfo_type): New. > (nbsd_init_abi): Install gdbarch "get_siginfo_type" method. > (_initialize_nbsd_tdep): New > --- Thanks, this is OK. Simon