From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.baldwin.cx (bigwig.baldwin.cx [66.216.25.90]) by sourceware.org (Postfix) with ESMTPS id CE1493835803 for ; Fri, 28 May 2021 20:27:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CE1493835803 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=jhb@FreeBSD.org Received: from ralph.com (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id E08691A84BA9 for ; Fri, 28 May 2021 16:27:18 -0400 (EDT) From: John Baldwin To: gdb-patches@sourceware.org Subject: [PATCH 0/5] Add helper functions for FreeBSD native targets Date: Fri, 28 May 2021 13:26:09 -0700 Message-Id: <20210528202614.2081-1-jhb@FreeBSD.org> X-Mailer: git-send-email 2.31.1 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]); Fri, 28 May 2021 16:27:19 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.103.1 at mail.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, FORGED_SPF_HELO, KAM_DMARC_STATUS, KHOP_HELO_FCRDNS, SPF_HELO_PASS, SPF_SOFTFAIL, TXREP autolearn=no 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: Fri, 28 May 2021 20:27:23 -0000 I have another series I'm working on that will end up using these helpers for the x86 native targets as well. This mostly just serves to reduce some code duplication. John Baldwin (5): Add regcache_map_supplies helper routine. fbsd-nat: Add helper functions to fetch and store register sets. riscv-fbsd-nat: Use fetch_register_set and store_register_set. aarch64-fbsd-nat: Use fetch_register_set and store_register_set. arm-fbsd-nat: Use fetch_register_set and store_register_set. gdb/ChangeLog | 30 ++++++++++++++++ gdb/aarch64-fbsd-nat.c | 77 +++++---------------------------------- gdb/arm-fbsd-nat.c | 81 +++++------------------------------------- gdb/fbsd-nat.h | 44 +++++++++++++++++++++++ gdb/regcache.c | 27 ++++++++++++++ gdb/regcache.h | 7 ++++ gdb/riscv-fbsd-nat.c | 78 +++++----------------------------------- 7 files changed, 132 insertions(+), 212 deletions(-) -- 2.31.1