From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113008 invoked by alias); 6 Nov 2018 17:56:40 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 112949 invoked by uid 89); 6 Nov 2018 17:56:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy= X-HELO: mail.baldwin.cx Received: from bigwig.baldwin.cx (HELO mail.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 06 Nov 2018 17:56:36 +0000 Received: from ralph.com (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id 03BB210A87D for ; Tue, 6 Nov 2018 12:56:34 -0500 (EST) From: John Baldwin To: gdb-patches@sourceware.org Subject: [PATCH v2 0/3] Update FreeBSD's syscall table Date: Tue, 06 Nov 2018 17:56:00 -0000 Message-Id: <20181106175431.59832-1-jhb@FreeBSD.org> X-IsSubscribed: yes X-SW-Source: 2018-11/txt/msg00065.txt.bz2 Relative to the first version of this patch series, I've fixed some nits noted by reviewers. One thing I have not changed is I chose to keep the changed API of returning a vector of integers from get_syscalls_by_name(). I have expanded the comment in xml-syscall.h a bit to be more clear on why it returns a vector of integers. I also added a new patch (patch 1) to change the similar get_syscalls_by_group() to return a vector of integers instead of an allocated array of structures. This results in more symmetry in the final code in break-catch-syscall.c. There wasn't a very clean way to share the bits of duplicated code however. John Baldwin (3): Return a vector of integers from get_syscalls_by_group. Add an optional "alias" attribute to syscall entries. Update the FreeBSD system call table to match FreeBSD 12.0. gdb/ChangeLog | 37 ++++++++++++ gdb/break-catch-syscall.c | 27 ++++----- gdb/gdbarch.h | 3 - gdb/gdbarch.sh | 3 - gdb/syscalls/freebsd.xml | 107 ++++++++++++++++++++++++++------- gdb/syscalls/gdb-syscalls.dtd | 1 + gdb/syscalls/update-freebsd.sh | 77 ++++++++++++++++++++++++ gdb/xml-syscall.c | 91 ++++++++++++---------------- gdb/xml-syscall.h | 17 +++--- 9 files changed, 258 insertions(+), 105 deletions(-) create mode 100755 gdb/syscalls/update-freebsd.sh -- 2.18.0